summaryrefslogtreecommitdiffstats
path: root/sys/net/if_iso88025subr.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-06-10 09:07:05 +0000
committerbz <bz@FreeBSD.org>2009-06-10 09:07:05 +0000
commitf5e2381b7d5343afbd217577f932b65b89253433 (patch)
tree5d608442c4939c3dfdf043dd503c1c7df2c6f33a /sys/net/if_iso88025subr.c
parentddb9834c3c59bcc9abdda53584a7676e799b99e2 (diff)
downloadFreeBSD-src-f5e2381b7d5343afbd217577f932b65b89253433.zip
FreeBSD-src-f5e2381b7d5343afbd217577f932b65b89253433.tar.gz
The llentry *lle is only used in cases of INET or INET6.
Put the variable declaration under proper #ifdefs. In case variables are only needed for one of the two AFs more them into proper scope.
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r--sys/net/if_iso88025subr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index a6d25dc..dafc57d 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -243,8 +243,10 @@ iso88025_output(ifp, m, dst, ro)
struct iso88025_header *th;
struct iso88025_header gen_th;
struct sockaddr_dl *sdl = NULL;
- struct llentry *lle;
struct rtentry *rt0 = NULL;
+#if defined(INET) || defined(INET6)
+ struct llentry *lle;
+#endif
if (ro != NULL)
rt0 = ro->ro_rt;
OpenPOWER on IntegriCloud