summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-06-27 11:02:06 +0000
committermux <mux@FreeBSD.org>2002-06-27 11:02:06 +0000
commit5347bbeaf298405b5130d36f4f0a07641ede79c5 (patch)
treeb50fd242e66905eb833f3b4a02d984216e9b425a /sys/netinet/ip_output.c
parent479ff2a2a0461dc56fe114d6525376c96617cf1b (diff)
downloadFreeBSD-src-5347bbeaf298405b5130d36f4f0a07641ede79c5.zip
FreeBSD-src-5347bbeaf298405b5130d36f4f0a07641ede79c5.tar.gz
Warning fixes for 64 bits platforms. With this last fix,
I can build a GENERIC sparc64 kernel with -Werror. Reviewed by: luigi
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 1576a5a..3402a28 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -168,7 +168,7 @@ ip_output(m0, opt, ro, flags, imo)
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:
OpenPOWER on IntegriCloud