Make two casts correct for all types of 64bit platforms.

Explained by:	bde
This commit is contained in:
Andre Oppermann 2003-11-16 12:50:33 +00:00
parent 565f53bbaa
commit be7e82e44a

View File

@ -378,7 +378,7 @@ ip_fastforward(struct mbuf *m)
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 @@ ip_fastforward(struct mbuf *m)
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;