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:
Maxime Henrion 2002-06-27 11:02:06 +00:00
parent c6d84b4d4b
commit 7627c6cbcc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98904
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: