patch-2.4.10 linux/net/ipv4/ip_sockglue.c

Next file: linux/net/ipv4/ipip.c
Previous file: linux/net/ipv4/ip_output.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/net/ipv4/ip_sockglue.c linux/net/ipv4/ip_sockglue.c
@@ -5,7 +5,7 @@
  *
  *		The IP to API glue.
  *		
- * Version:	$Id: ip_sockglue.c,v 1.59 2001/08/13 18:56:12 davem Exp $
+ * Version:	$Id: ip_sockglue.c,v 1.60 2001/09/18 22:29:09 davem Exp $
  *
  * Authors:	see ip.c
  *
@@ -683,7 +683,7 @@
 
 				ip_options_undo(opt);
 
-				len = min(unsigned int, len, opt->optlen);
+				len = min_t(unsigned int, len, opt->optlen);
 				if(put_user(len, optlen))
 					return -EFAULT;
 				if(copy_to_user(optval, opt->__data, len))
@@ -744,7 +744,7 @@
 		case IP_MULTICAST_IF:
 		{
 			struct in_addr addr;
-			len = min(unsigned int, len, sizeof(struct in_addr));
+			len = min_t(unsigned int, len, sizeof(struct in_addr));
 			addr.s_addr = sk->protinfo.af_inet.mc_addr;
 			release_sock(sk);
 
@@ -808,7 +808,7 @@
 		if(copy_to_user(optval,&ucval,1))
 			return -EFAULT;
 	} else {
-		len = min(unsigned int, sizeof(int), len);
+		len = min_t(unsigned int, sizeof(int), len);
 		if(put_user(len, optlen))
 			return -EFAULT;
 		if(copy_to_user(optval,&val,len))

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