Date: Sun, 23 Jun 2002 07:21:54 -0700 From: Maxime Henrion <mux@freebsd.org> To: freebsd-ipfw@FreeBSD.org Subject: 64 bits platforms warning fixes Message-ID: <20020623142154.GI85525@elvis.mu.org>
next in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020623142154.GI85525>