1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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
This commit is contained in:
Eitan Adler 2012-01-20 01:37:31 +00:00
parent 9840ec1752
commit 7268c7daff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230347

View File

@ -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);