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:
Bjoern A. Zeeb 2010-10-01 15:14:14 +00:00
parent d329352945
commit b6b8c0779d

View File

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