Fix warning when compiling with gcc46:
error: variable 'ifnetfound' set but not used Approved by: dim MFC after: 3 days
This commit is contained in:
parent
fdba8122d6
commit
b4f7ea1936
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229909
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user