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:
parent
82c6ef299e
commit
1f6973c5b4
@ -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");
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user