svn commit: r213328 - head/sys/net

Bjoern A. Zeeb bz at FreeBSD.org
Fri Oct 1 15:14:14 UTC 2010


Author: bz
Date: Fri Oct  1 15:14:14 2010
New Revision: 213328
URL: http://svn.freebsd.org/changeset/base/213328

Log:
  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

Modified:
  head/sys/net/if_tun.c

Modified: head/sys/net/if_tun.c
==============================================================================
--- head/sys/net/if_tun.c	Fri Oct  1 14:36:36 2010	(r213327)
+++ head/sys/net/if_tun.c	Fri Oct  1 15:14:14 2010	(r213328)
@@ -497,8 +497,8 @@ tunclose(struct cdev *dev, int foo, int 
 static int
 tuninit(struct ifnet *ifp)
 {
-#ifdef INET
 	struct tun_softc *tp = ifp->if_softc;
+#ifdef INET
 	struct ifaddr *ifa;
 #endif
 	int error = 0;


More information about the svn-src-all mailing list