From 5cda71067d25d83bba90f9fdbd6f2a9dc9bac8ed Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 1 Jul 1999 15:07:08 +0000 Subject: [PATCH] Fix two easy warnings when using BRIDGE without IPFIREWALL. --- sys/net/bridge.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net/bridge.c b/sys/net/bridge.c index 987878873bc9..645425acf902 100644 --- a/sys/net/bridge.c +++ b/sys/net/bridge.c @@ -460,13 +460,14 @@ bdg_forward (struct mbuf **m0, struct ifnet *dst) { struct ifnet *src = (*m0)->m_pkthdr.rcvif; /* could be NULL in output */ struct ifnet *ifp ; - struct ip *ip; int error=0, s ; int once = 0; /* execute the loop only once */ int canfree = 1 ; /* can free the buf at the end */ struct mbuf *m ; - +#ifdef IPFIREWALL + struct ip *ip; struct ether_header *eh = mtod(*m0, struct ether_header *); /* XXX */ +#endif if (dst == BDG_DROP) { /* this should not happen */ printf("xx bdg_forward for BDG_DROP)\n");