summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-20 01:37:31 +0000
committereadler <eadler@FreeBSD.org>2012-01-20 01:37:31 +0000
commit903faae9f3c942bc0a329194a71140dff7e14c85 (patch)
treea3fcdabc49611cadf4476c099addcf036679f101 /usr.sbin
parent30bbed088a5fb44d278456fba684f2163909724e (diff)
downloadFreeBSD-src-903faae9f3c942bc0a329194a71140dff7e14c85.zip
FreeBSD-src-903faae9f3c942bc0a329194a71140dff7e14c85.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/iface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c
index 7437502..8fee189 100644
--- a/usr.sbin/ppp/iface.c
+++ b/usr.sbin/ppp/iface.c
@@ -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);
OpenPOWER on IntegriCloud