mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make two casts correct for all types of 64bit platforms.
Explained by: bde
This commit is contained in:
parent
565f53bbaa
commit
be7e82e44a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue