From owner-svn-src-head@FreeBSD.ORG Tue Jul 31 08:04:49 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B026D106564A; Tue, 31 Jul 2012 08:04:49 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9B38B8FC14; Tue, 31 Jul 2012 08:04:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6V84nV5003604; Tue, 31 Jul 2012 08:04:49 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6V84nxJ003602; Tue, 31 Jul 2012 08:04:49 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <201207310804.q6V84nxJ003602@svn.freebsd.org> From: Luigi Rizzo Date: Tue, 31 Jul 2012 08:04:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r238941 - head/sys/netinet X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2012 08:04:49 -0000 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;