diff --git a/usr.sbin/ifmcstat/Makefile b/usr.sbin/ifmcstat/Makefile index 4d6cc888fc8a..a5911dc8f3b8 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 21739995f149..feb289d90ae5 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));