diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2010-10-01 15:14:14 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2010-10-01 15:14:14 +0000 |
commit | b6b8c0779d9dfd3ee5f44baf8466d227b106fefb (patch) | |
tree | e282665b12d0a0181a3fbfa88e266f5f121d0ff9 /sys/net/if_tun.c | |
parent | d3293529458492be98aaf9159bff644a93e83bcc (diff) | |
download | src-b6b8c0779d9dfd3ee5f44baf8466d227b106fefb.tar.gz src-b6b8c0779d9dfd3ee5f44baf8466d227b106fefb.zip |
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
Notes
Notes:
svn path=/head/; revision=213328
Diffstat (limited to 'sys/net/if_tun.c')
-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 775471d23502..7c01ebe14cf6 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; |