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
684cc6f63c
commit
45de99140d
@ -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