Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Apr 2012 02:10:46 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r234263 - stable/9/usr.sbin/ppp
Message-ID:  <201204140210.q3E2Ak9M008257@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sat Apr 14 02:10:45 2012
New Revision: 234263
URL: http://svn.freebsd.org/changeset/base/234263

Log:
  MFC r230347:
  	Fix warning when compiling with gcc46:
  		error: variable 'addrs' set but not used
  
  Approved by:	cperciva (implicit)

Modified:
  stable/9/usr.sbin/ppp/iface.c
Directory Properties:
  stable/9/usr.sbin/ppp/   (props changed)

Modified: stable/9/usr.sbin/ppp/iface.c
==============================================================================
--- stable/9/usr.sbin/ppp/iface.c	Sat Apr 14 02:07:37 2012	(r234262)
+++ stable/9/usr.sbin/ppp/iface.c	Sat Apr 14 02:10:45 2012	(r234263)
@@ -471,12 +471,11 @@ iface_Descr(struct cmdargs const *arg)
 void
 iface_Clear(struct iface *iface, struct ncp *ncp, int family, int how)
 {
-  int addrs, af, inskip, in6skip, s4 = -1, s6 = -1, *s;
+  int af, inskip, in6skip, s4 = -1, s6 = -1, *s;
   unsigned n;
 
   if (iface->addrs) {
     inskip = in6skip = how == IFACE_CLEAR_ALL ? 0 : 1;
-    addrs = 0;
 
     for (n = 0; n < iface->addrs; n++) {
       af = ncprange_family(&iface->addr[n].ifa);



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