From b4f7ea19362618b60636d33fee44728dbf960d42 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Tue, 10 Jan 2012 02:58:36 +0000 Subject: [PATCH] Fix warning when compiling with gcc46: error: variable 'ifnetfound' set but not used Approved by: dim MFC after: 3 days --- usr.bin/netstat/if.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index a985791c6df..7629dd4cf6f 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));