From 496ba967aef04554bd0e798f5a7af3d593659b29 Mon Sep 17 00:00:00 2001 From: Johan Karlsson Date: Wed, 3 Mar 2004 20:21:15 +0000 Subject: Make this WARNS=2 clean by: - including to get _long_to_time prototype - removing an unused variable Bump WARNS to it keep clean. Approved by: ume on ipfw@ --- sbin/ip6fw/Makefile | 2 +- sbin/ip6fw/ip6fw.c | 3 +-- 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 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 #include #include +#include #include #include #include @@ -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)); /* -- cgit v1.3