From be7e82e44a2ba4a0baabe28cc2a6c97f78e5d39c Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Sun, 16 Nov 2003 12:50:33 +0000 Subject: [PATCH] Make two casts correct for all types of 64bit platforms. Explained by: bde --- sys/netinet/ip_fastfwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c index 2b81b6af974..f831b392d6e 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;