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@
This commit is contained in:
Johan Karlsson 2004-03-03 20:21:15 +00:00
parent 2c7b777c65
commit 496ba967ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126563
2 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PROG= ip6fw
WARNS?= 0
WARNS?= 2
MAN= ip6fw.8
.include <bsd.prog.mk>

View File

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