patch-2.4.10 linux/fs/ncpfs/file.c

Next file: linux/fs/ncpfs/inode.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/fs/ncpfs/file.c linux/fs/ncpfs/file.c
@@ -152,7 +152,7 @@
 	/* First read in as much as possible for each bufsize. */
 	while (already_read < count) {
 		int read_this_time;
-		size_t to_read = min(unsigned int,
+		size_t to_read = min_t(unsigned int,
 				     bufsize - (pos % bufsize),
 				     count - already_read);
 
@@ -234,7 +234,7 @@
 	}
 	while (already_written < count) {
 		int written_this_time;
-		size_t to_write = min(unsigned int,
+		size_t to_write = min_t(unsigned int,
 				      bufsize - (pos % bufsize),
 				      count - already_written);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)