patch-2.4.9 linux/drivers/s390/net/iucv.c

Next file: linux/drivers/s390/net/netiucv.c
Previous file: linux/drivers/pcmcia/bulkmem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/s390/net/iucv.c linux/drivers/s390/net/iucv.c
@@ -39,13 +39,6 @@
 #include <asm/s390_ext.h>
 #include <asm/ebcdic.h>
 
-#ifndef min
-#define min(a,b) (((a)<(b))?(a):(b))
-#endif
-#ifndef max
-#define max(a,b) (((a)>(b))?(a):(b))
-#endif
-
 #ifdef DEBUG
 #undef KERN_INFO
 #undef KERN_DEBUG
@@ -1316,7 +1309,7 @@
 			if (residual_buffer)
 				*residual_buffer = parm.ipbfadr1;
 		} else {
-			moved = min (buflen, 8);
+			moved = min(unsigned int, buflen, 8);
 
 			memcpy ((char *) buffer,
 				(char *) &parm.ipbfadr1, moved);
@@ -1409,7 +1402,8 @@
 
 			while ((moved < 8) && (moved < buflen)) {
 				dyn_len =
-				    min ((buffer + i)->length, need_to_move);
+				    min(unsigned int,
+					(buffer + i)->length, need_to_move);
 
 				memcpy ((char *)((ulong)((buffer + i)->address)),
 					((char *) &parm.ipbfadr1) + moved,

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