From owner-freebsd-ipfw Sun Jun 23 7:21:59 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id CE5D237B400 for ; Sun, 23 Jun 2002 07:21:54 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1920) id AFAA2AE027; Sun, 23 Jun 2002 07:21:54 -0700 (PDT) Date: Sun, 23 Jun 2002 07:21:54 -0700 From: Maxime Henrion To: freebsd-ipfw@FreeBSD.org Subject: 64 bits platforms warning fixes Message-ID: <20020623142154.GI85525@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="M/SuVGWktc5uNpra" Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --M/SuVGWktc5uNpra Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, Here is a small patch to fix warnings that occur on 64 bits platforms. Could I have someone to review it so that I can commit it ? Thanks, Maxime --M/SuVGWktc5uNpra Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ip.patch" Index: ip_input.c =================================================================== RCS file: /space/ncvs/src/sys/netinet/ip_input.c,v retrieving revision 1.201 diff -u -r1.201 ip_input.c --- ip_input.c 22 Jun 2002 11:51:02 -0000 1.201 +++ ip_input.c 23 Jun 2002 14:06:39 -0000 @@ -300,7 +300,7 @@ break; case PACKET_TAG_DIVERT: - args.divert_rule = (int)m->m_hdr.mh_data & 0xffff; + args.divert_rule = (intptr_t)m->m_hdr.mh_data & 0xffff; break; case PACKET_TAG_IPFORWARD: Index: ip_output.c =================================================================== RCS file: /space/ncvs/src/sys/netinet/ip_output.c,v retrieving revision 1.158 diff -u -r1.158 ip_output.c --- ip_output.c 22 Jun 2002 11:51:02 -0000 1.158 +++ ip_output.c 23 Jun 2002 14:07:09 -0000 @@ -168,7 +168,7 @@ break; case PACKET_TAG_DIVERT: - args.divert_rule = (int)m0->m_data & 0xffff; + args.divert_rule = (intptr_t)m0->m_data & 0xffff; break; case PACKET_TAG_IPFORWARD: --M/SuVGWktc5uNpra-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message