Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sys/netinet6/in6_ifattach.c expects int but is size_t
Building HEAD failed on my amd64 system (using build.sh).
cc1: warnings being treated as errors
/usr/src/sys/netinet6/in6_ifattach.c: In function 'getifp':
/usr/src/sys/netinet6/in6_ifattach.c:903: warning: format '%d' expects
type 'int', but argument 4 has type 'size_t'
Here is my patch:
Index: sys/netinet6/in6_ifattach.c
===================================================================
RCS file: /cvsroot/src/sys/netinet6/in6_ifattach.c,v
retrieving revision 1.83
diff -u -r1.83 in6_ifattach.c
--- sys/netinet6/in6_ifattach.c 13 Aug 2009 00:34:04 -0000 1.83
+++ sys/netinet6/in6_ifattach.c 14 Aug 2009 04:19:50 -0000
@@ -899,7 +899,7 @@
if (ifindex2ifnet == NULL)
printf("%s: no ifindices in use\n", __func__);
else if (ifindex >= if_indexlim) {
- printf("%s: ifindex %d >= limit %d\n", __func__, ifindex,
+ printf("%s: ifindex %d >= limit %lu\n", __func__, ifindex,
if_indexlim);
} else if ((ifp = ifindex2ifnet[ifindex]) == NULL)
printf("%s: ifindex %d not in use\n", __func__, ifindex);
Home |
Main Index |
Thread Index |
Old Index