summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ifmcstat/Makefile2
-rw-r--r--usr.sbin/ifmcstat/ifmcstat.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ifmcstat/Makefile b/usr.sbin/ifmcstat/Makefile
index 4d6cc88..a5911dc 100644
--- a/usr.sbin/ifmcstat/Makefile
+++ b/usr.sbin/ifmcstat/Makefile
@@ -5,6 +5,8 @@ PROG= ifmcstat
MAN= ifmcstat.8
BINMODE= 550
+WARNS?= 2
+
DPADD= ${LIBKVM}
LDADD= -lkvm
diff --git a/usr.sbin/ifmcstat/ifmcstat.c b/usr.sbin/ifmcstat/ifmcstat.c
index 2173999..feb289d 100644
--- a/usr.sbin/ifmcstat/ifmcstat.c
+++ b/usr.sbin/ifmcstat/ifmcstat.c
@@ -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));
OpenPOWER on IntegriCloud