Date: Tue, 31 Jul 2012 08:04:49 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r238941 - head/sys/netinet Message-ID: <201207310804.q6V84nxJ003602@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207310804.q6V84nxJ003602>