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
@ -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