diff options
author | bz <bz@FreeBSD.org> | 2009-06-10 09:07:05 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-06-10 09:07:05 +0000 |
commit | f5e2381b7d5343afbd217577f932b65b89253433 (patch) | |
tree | 5d608442c4939c3dfdf043dd503c1c7df2c6f33a /sys/net/if_arcsubr.c | |
parent | ddb9834c3c59bcc9abdda53584a7676e799b99e2 (diff) | |
download | FreeBSD-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_arcsubr.c')
-rw-r--r-- | sys/net/if_arcsubr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c index bb3cac6..f11ff59 100644 --- a/sys/net/if_arcsubr.c +++ b/sys/net/if_arcsubr.c @@ -109,7 +109,9 @@ arc_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, u_int8_t atype, adst; int loop_copy = 0; int isphds; +#if defined(INET) || defined(INET6) struct llentry *lle; +#endif if (!((ifp->if_flags & IFF_UP) && (ifp->if_drv_flags & IFF_DRV_RUNNING))) |