diff options
author | bz <bz@FreeBSD.org> | 2010-10-01 15:14:14 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2010-10-01 15:14:14 +0000 |
commit | 054f4fff2340a9f86e60a8026103db93955c7973 (patch) | |
tree | e282665b12d0a0181a3fbfa88e266f5f121d0ff9 /sys/net | |
parent | 056173e66d0a08f5f08a2a60a92dbfe3e2d79ca8 (diff) | |
download | FreeBSD-src-054f4fff2340a9f86e60a8026103db93955c7973.zip FreeBSD-src-054f4fff2340a9f86e60a8026103db93955c7973.tar.gz |
Only hide the ifa and not the tp under #ifdef INET as the tp is needed
for locking evenwhen there is no INET.
MFC after: 3 days
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 775471d..7c01ebe 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -497,8 +497,8 @@ tunclose(struct cdev *dev, int foo, int bar, struct thread *td) static int tuninit(struct ifnet *ifp) { -#ifdef INET struct tun_softc *tp = ifp->if_softc; +#ifdef INET struct ifaddr *ifa; #endif int error = 0; |