patch-2.4.10 linux/net/ipv6/raw.c

Next file: linux/net/ipv6/route.c
Previous file: linux/net/ipv6/ndisc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/net/ipv6/raw.c linux/net/ipv6/raw.c
@@ -7,7 +7,7 @@
  *
  *	Adapted from linux/net/ipv4/raw.c
  *
- *	$Id: raw.c,v 1.49 2001/08/13 18:56:13 davem Exp $
+ *	$Id: raw.c,v 1.50 2001/09/18 22:29:10 davem Exp $
  *
  *	Fixes:
  *	Hideaki YOSHIFUJI	:	sin6_scope_id support
@@ -699,7 +699,7 @@
 		return -ENOPROTOOPT;
 	}
 
-	len = min(unsigned int, sizeof(int), len);
+	len = min_t(unsigned int, sizeof(int), len);
 
 	if (put_user(len, optlen))
 		return -EFAULT;

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