diff options
author | eadler <eadler@FreeBSD.org> | 2012-06-19 06:10:27 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-06-19 06:10:27 +0000 |
commit | 0f9ceef4834e460e60a9d73c9013f3be916d1bcc (patch) | |
tree | 3ee458c119c068781ec32a8503c2ae69cdf632de /usr.sbin/ifmcstat/ifmcstat.c | |
parent | 9d2aff8e01f156294f9f917eb41d86c4b858a36c (diff) | |
download | FreeBSD-src-0f9ceef4834e460e60a9d73c9013f3be916d1bcc.zip FreeBSD-src-0f9ceef4834e460e60a9d73c9013f3be916d1bcc.tar.gz |
Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva
MFC After: 3 days
Diffstat (limited to 'usr.sbin/ifmcstat/ifmcstat.c')
-rw-r--r-- | usr.sbin/ifmcstat/ifmcstat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ifmcstat/ifmcstat.c b/usr.sbin/ifmcstat/ifmcstat.c index d92c056..838c83d 100644 --- a/usr.sbin/ifmcstat/ifmcstat.c +++ b/usr.sbin/ifmcstat/ifmcstat.c @@ -387,7 +387,6 @@ ll_addrlist(struct ifaddr *ifap) struct sockaddr sa; struct sockaddr_dl sdl; struct ifaddr *ifap0; - int error; if (af && af != AF_LINK) return; @@ -404,7 +403,7 @@ ll_addrlist(struct ifaddr *ifap) if (sdl.sdl_alen == 0) goto nextifap; addrbuf[0] = '\0'; - error = getnameinfo((struct sockaddr *)&sdl, sdl.sdl_len, + getnameinfo((struct sockaddr *)&sdl, sdl.sdl_len, addrbuf, sizeof(addrbuf), NULL, 0, NI_NUMERICHOST); printf("\tlink %s\n", addrbuf); nextifap: @@ -427,7 +426,7 @@ ll_addrlist(struct ifaddr *ifap) goto nextmulti; KREAD(ifm.ifma_addr, &sdl, struct sockaddr_dl); addrbuf[0] = '\0'; - error = getnameinfo((struct sockaddr *)&sdl, + getnameinfo((struct sockaddr *)&sdl, sdl.sdl_len, addrbuf, sizeof(addrbuf), NULL, 0, NI_NUMERICHOST); printf("\t\tgroup %s refcnt %d\n", |