Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2010 15:14:14 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213328 - head/sys/net
Message-ID:  <201010011514.o91FEEBG010237@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010011514.o91FEEBG010237>