Author: eadler
Date: Fri Jan 20 01:37:31 2012
New Revision: 230347
URL: http://svn.freebsd.org/changeset/base/230347

Log:
  Fix warning when compiling with gcc46:
        error: variable 'addrs' set but not used
  
  Approved by:  dim
  Approved by:  cperciva (mentor, blanket for pre-mentorship already-approved 
commits)
  MFC After:    3 days

Modified:
  head/usr.sbin/ppp/iface.c

Modified: head/usr.sbin/ppp/iface.c
==============================================================================
--- head/usr.sbin/ppp/iface.c   Fri Jan 20 01:37:23 2012        (r230346)
+++ head/usr.sbin/ppp/iface.c   Fri Jan 20 01:37:31 2012        (r230347)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to