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:
Dima Dorfman 2004-09-13 08:14:55 +00:00
parent 67673e6677
commit 3ee6bbffb0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135139
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,8 @@ PROG= ifmcstat
MAN= ifmcstat.8
BINMODE= 550
WARNS?= 2
DPADD= ${LIBKVM}
LDADD= -lkvm

View File

@ -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));