patch-2.0.21-2.1.0 linux/fs/smbfs/file.c

Next file: linux/fs/smbfs/proc.c
Previous file: linux/fs/smbfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file lx2.0/v2.0.21/linux/fs/smbfs/file.c linux/fs/smbfs/file.c
@@ -63,8 +63,8 @@
         return -EACCES;
 }
 
-static int 
-smb_file_read(struct inode *inode, struct file *file, char *buf, int count)
+static long
+smb_file_read(struct inode *inode, struct file *file, char *buf, unsigned long count)
 {
 	int result, bufsize, to_read, already_read;
 	off_t pos;
@@ -140,9 +140,9 @@
         return already_read;
 }
 
-static int 
+static long
 smb_file_write(struct inode *inode, struct file *file, const char *buf,
-	       int count)
+	       unsigned long count)
 {
 	int result, bufsize, to_write, already_written;
         off_t pos;
@@ -161,7 +161,7 @@
 
         DPRINTK("smb_file_write: enter %s\n", SMB_FINFO(inode)->path);
 
-	if (count <= 0)
+	if (!count)
 		return 0;
 
         if ((errno = smb_make_open(inode, O_RDWR)) != 0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov