From 3ee6bbffb0d7457199487e0c04ddd04f5b109cd5 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Mon, 13 Sep 2004 08:14:55 +0000
Subject: [PATCH] Remove unused variable and clamp down with WARNS=2
PR: 71662
Submitted by: Dan Lukes
Tested on: i386, sparc64, ia64, amd64
---
usr.sbin/ifmcstat/Makefile | 2 ++
usr.sbin/ifmcstat/ifmcstat.c | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
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));