diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2012-01-10 02:58:36 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2012-01-10 02:58:36 +0000 |
commit | b4f7ea19362618b60636d33fee44728dbf960d42 (patch) | |
tree | 9274d83cc6b44ed16eaf2691c6a08076e5a5a224 | |
parent | fdba8122d6a4c602309d08c7ce767937cce0c02d (diff) |
Fix warning when compiling with gcc46:
error: variable 'ifnetfound' set but not used
Approved by: dim
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=229909
-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 a985791c6dfd..7629dd4cf6fb 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)); |