summaryrefslogtreecommitdiffstats
path: root/sys/net/if_gif.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-11-05 11:37:26 +0000
committerbz <bz@FreeBSD.org>2008-11-05 11:37:26 +0000
commitf83635a6ee1bfb033527668f641353a193daa86e (patch)
treed65b473633971bd9f4c04fde6eb078e32fff1fb2 /sys/net/if_gif.c
parent8dd958ae178f7cde9ca9f289c3a8243a7689837f (diff)
downloadFreeBSD-src-f83635a6ee1bfb033527668f641353a193daa86e.zip
FreeBSD-src-f83635a6ee1bfb033527668f641353a193daa86e.tar.gz
Do only define the variable if either INET or INET6 is defined.
To prevent it from compiling without INET and INET6 we should put an explicit #error in there like we have in other files, but not rely on an unused variable. MFC after: 2 months
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r--sys/net/if_gif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 8e0363c..db8835e 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -207,7 +207,9 @@ static void
gif_clone_destroy(ifp)
struct ifnet *ifp;
{
+#if defined(INET) || defined(INET6)
int err;
+#endif
struct gif_softc *sc = ifp->if_softc;
mtx_lock(&gif_mtx);
OpenPOWER on IntegriCloud