diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-10 02:58:36 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-10 02:58:36 +0000 |
commit | 988368040652cc2c1de4ae3b058ed129dd6a671e (patch) | |
tree | 9274d83cc6b44ed16eaf2691c6a08076e5a5a224 /usr.bin | |
parent | 79336da98aefd1d52dc0317ff6f02d52a4f2dade (diff) | |
download | FreeBSD-src-988368040652cc2c1de4ae3b058ed129dd6a671e.zip FreeBSD-src-988368040652cc2c1de4ae3b058ed129dd6a671e.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'ifnetfound' set but not used
Approved by: dim
MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/if.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index a985791..7629dd4 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -188,7 +188,6 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *)) } ifaddr; u_long ifaddraddr; u_long ifaddrfound; - u_long ifnetfound; u_long opackets; u_long ipackets; u_long obytes; @@ -249,7 +248,6 @@ intpr(int interval1, u_long ifnetaddr, void (*pfunc)(char *)) link_layer = 0; if (ifaddraddr == 0) { - ifnetfound = ifnetaddr; if (kread(ifnetaddr, (char *)&ifnet, sizeof ifnet) != 0) return; strlcpy(name, ifnet.if_xname, sizeof(name)); |