mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
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
This commit is contained in:
parent
d329352945
commit
b6b8c0779d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213328
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user