From 1f6973c5b44cf0a7509373d8624f95eb29e11d6b Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Sun, 6 Oct 2002 14:02:35 +0000 Subject: [PATCH] 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. --- sys/net/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/bridge.c b/sys/net/bridge.c index 23736de5d9cb..e41d8c77c482 100644 --- a/sys/net/bridge.c +++ b/sys/net/bridge.c @@ -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"); /*