summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fastfwd.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2003-11-16 12:50:33 +0000
committerandre <andre@FreeBSD.org>2003-11-16 12:50:33 +0000
commit5c67a85f6892886a48a73d75e804f8d29ba00229 (patch)
tree0cbc99cf755c18f2db52a84f7ebc69a946596ceb /sys/netinet/ip_fastfwd.c
parent24d9bb8f28f8230b89c8a7ec8c6d8e9f8da69654 (diff)
downloadFreeBSD-src-5c67a85f6892886a48a73d75e804f8d29ba00229.zip
FreeBSD-src-5c67a85f6892886a48a73d75e804f8d29ba00229.tar.gz
Make two casts correct for all types of 64bit platforms.
Explained by: bde
Diffstat (limited to 'sys/netinet/ip_fastfwd.c')
-rw-r--r--sys/netinet/ip_fastfwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c
index 2b81b6a..f831b39 100644
--- a/sys/netinet/ip_fastfwd.c
+++ b/sys/netinet/ip_fastfwd.c
@@ -378,7 +378,7 @@ fallback:
if (tag == NULL)
goto drop;
tag->m_flags = PACKET_TAG_DIVERT;
- tag->m_data = (caddr_t)(u_long)args.divert_rule;
+ tag->m_data = (caddr_t)(intptr_t)args.divert_rule;
tag->m_next = m;
/* XXX: really bloody hack, see ip_input */
tag->m_nextpkt = (struct mbuf *)1;
@@ -567,7 +567,7 @@ passin:
goto drop;
}
tag->m_flags = PACKET_TAG_DIVERT;
- tag->m_data = (caddr_t)(u_long)args.divert_rule;
+ tag->m_data = (caddr_t)(intptr_t)args.divert_rule;
tag->m_next = m;
/* XXX: really bloody hack, see ip_input */
tag->m_nextpkt = (struct mbuf *)1;
OpenPOWER on IntegriCloud