svn commit: r234265 - stable/7/usr.sbin/ppp
Eitan Adler
eadler at FreeBSD.org
Sat Apr 14 02:11:27 UTC 2012
Author: eadler
Date: Sat Apr 14 02:11:26 2012
New Revision: 234265
URL: http://svn.freebsd.org/changeset/base/234265
Log:
MFC r230347:
Fix warning when compiling with gcc46:
error: variable 'addrs' set but not used
Approved by: cperciva (implicit)
Modified:
stable/7/usr.sbin/ppp/iface.c
Directory Properties:
stable/7/usr.sbin/ppp/ (props changed)
Modified: stable/7/usr.sbin/ppp/iface.c
==============================================================================
--- stable/7/usr.sbin/ppp/iface.c Sat Apr 14 02:11:08 2012 (r234264)
+++ stable/7/usr.sbin/ppp/iface.c Sat Apr 14 02:11:26 2012 (r234265)
@@ -373,12 +373,11 @@ iface_addr_Add(const char *name, struct
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);
More information about the svn-src-stable
mailing list