summaryrefslogtreecommitdiffstats
path: root/sbin/ip6fw
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2004-03-03 20:21:15 +0000
committerjohan <johan@FreeBSD.org>2004-03-03 20:21:15 +0000
commiteda438f852318d7296faead06263e5465c154154 (patch)
tree4a7675dffd4c02951ef9a90b227732eadd07142a /sbin/ip6fw
parent91c69517713f85a74ef8490c3a9303f92eb91c68 (diff)
downloadFreeBSD-src-eda438f852318d7296faead06263e5465c154154.zip
FreeBSD-src-eda438f852318d7296faead06263e5465c154154.tar.gz
Make this WARNS=2 clean by:
- including <timeconv.h> to get _long_to_time prototype - removing an unused variable Bump WARNS to it keep clean. Approved by: ume on ipfw@
Diffstat (limited to 'sbin/ip6fw')
-rw-r--r--sbin/ip6fw/Makefile2
-rw-r--r--sbin/ip6fw/ip6fw.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/sbin/ip6fw/Makefile b/sbin/ip6fw/Makefile
index dc91fd1..17f330d 100644
--- a/sbin/ip6fw/Makefile
+++ b/sbin/ip6fw/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PROG= ip6fw
-WARNS?= 0
+WARNS?= 2
MAN= ip6fw.8
.include <bsd.prog.mk>
diff --git a/sbin/ip6fw/ip6fw.c b/sbin/ip6fw/ip6fw.c
index 4946d77..6c80b08 100644
--- a/sbin/ip6fw/ip6fw.c
+++ b/sbin/ip6fw/ip6fw.c
@@ -68,6 +68,7 @@
#include <stdarg.h>
#include <string.h>
#include <time.h>
+#include <timeconv.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
@@ -839,8 +840,6 @@ fill_iface(char *which, union ip6_fw_if *ifu, int *byname, int ac, char *arg)
ifu->fu_via_ip6 = in6addr_any;
*byname = 0;
} else if (!isdigit(*arg)) {
- char *q;
-
*byname = 1;
strlcpy(ifu->fu_via_if.name, arg, sizeof(ifu->fu_via_if.name));
/*
OpenPOWER on IntegriCloud