Warning fixes for 64 bits platforms. With this last fix,
I can build a GENERIC sparc64 kernel with -Werror. Reviewed by: luigi
This commit is contained in:
parent
c6d84b4d4b
commit
7627c6cbcc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98904
@ -308,7 +308,7 @@ ip_input(struct mbuf *m)
|
||||
break;
|
||||
|
||||
case PACKET_TAG_DIVERT:
|
||||
args.divert_rule = (int)m->m_hdr.mh_data & 0xffff;
|
||||
args.divert_rule = (intptr_t)m->m_hdr.mh_data & 0xffff;
|
||||
break;
|
||||
|
||||
case PACKET_TAG_IPFORWARD:
|
||||
|
@ -168,7 +168,7 @@ ip_output(m0, opt, ro, flags, imo)
|
||||
break;
|
||||
|
||||
case PACKET_TAG_DIVERT:
|
||||
args.divert_rule = (int)m0->m_data & 0xffff;
|
||||
args.divert_rule = (intptr_t)m0->m_data & 0xffff;
|
||||
break;
|
||||
|
||||
case PACKET_TAG_IPFORWARD:
|
||||
|
Loading…
Reference in New Issue
Block a user