aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 dc91fd1cab30..17f330d1f0f2 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 4946d77c9942..6c80b0800ada 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));
/*