svn commit: r238941 - head/sys/netinet
Luigi Rizzo
luigi at FreeBSD.org
Tue Jul 31 08:04:49 UTC 2012
Author: luigi
Date: Tue Jul 31 08:04:49 2012
New Revision: 238941
URL: http://svn.freebsd.org/changeset/base/238941
Log:
nobody uses this file except the userspace ipfw code, but the cast
of a pointer to an integer needs a cast to prevent a warning for
size mismatch.
MFC after: 1 week
Modified:
head/sys/netinet/in_cksum.c
Modified: head/sys/netinet/in_cksum.c
==============================================================================
--- head/sys/netinet/in_cksum.c Tue Jul 31 07:36:27 2012 (r238940)
+++ head/sys/netinet/in_cksum.c Tue Jul 31 08:04:49 2012 (r238941)
@@ -88,7 +88,7 @@ in_cksum(struct mbuf *m, int len)
/*
* Force to even boundary.
*/
- if ((1 & (int) w) && (mlen > 0)) {
+ if ((1 & (uintptr_t) w) && (mlen > 0)) {
REDUCE;
sum <<= 8;
s_util.c[0] = *(u_char *)w;
More information about the svn-src-head
mailing list