Make two casts correct for all types of 64bit platforms.
Explained by: bde
This commit is contained in:
parent
565f53bbaa
commit
be7e82e44a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user