When reusing a pointer as a number, at least cast it

to uintptr_t rather than u_int to avoid warnings on
64 bits architectures.
This commit is contained in:
Maxime Henrion 2002-10-06 14:02:35 +00:00
parent 82c6ef299e
commit 1f6973c5b4

View File

@ -845,7 +845,7 @@ bdg_forward(struct mbuf *m0, struct ether_header *const eh, struct ifnet *dst)
ifp = dst ;
once = 1 ;
}
if ( (u_int)(ifp) <= (u_int)BDG_FORWARD )
if ((uintptr_t)(ifp) <= (u_int)BDG_FORWARD)
panic("bdg_forward: bad dst");
/*