Remove unused variable and clamp down with WARNS=2
PR: 71662 Submitted by: Dan Lukes <dan@obluda.cz> Tested on: i386, sparc64, ia64, amd64
This commit is contained in:
parent
67673e6677
commit
3ee6bbffb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135139
@ -5,6 +5,8 @@ PROG= ifmcstat
|
||||
MAN= ifmcstat.8
|
||||
BINMODE= 550
|
||||
|
||||
WARNS?= 2
|
||||
|
||||
DPADD= ${LIBKVM}
|
||||
LDADD= -lkvm
|
||||
|
||||
|
@ -148,7 +148,6 @@ char *ifname(ifp)
|
||||
{
|
||||
static char buf[BUFSIZ];
|
||||
struct ifnet ifnet;
|
||||
char ifnamebuf[IFNAMSIZ];
|
||||
|
||||
KREAD(ifp, &ifnet, struct ifnet);
|
||||
strlcpy(buf, ifnet.if_xname, sizeof(buf));
|
||||
|
Loading…
Reference in New Issue
Block a user