Fixed missing declaration of pluralies(). This showed up as strange

printf format warnings for inet6.c (pluralies() was implicit int, but
the context requires a "char *").

Added WARNS?=2 to the Makefile so that such errors don't come back.
Added NO_WERROR?= to the Makefile because I haven't checked that setting
WARNS doesn't uncover more bugs except on i386's.
This commit is contained in:
Bruce Evans 2003-12-29 04:41:38 +00:00
parent 3e15599181
commit aa54e1ecc5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123950
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,8 @@ SRCS= if.c inet.c inet6.c main.c mbuf.c mroute.c ipx.c route.c \
unix.c atalk.c netgraph.c mroute6.c ipsec.c
CFLAGS+=-DIPSEC
CFLAGS+=-DINET6
WARNS?= 2
NO_WERROR?=
BINGRP= kmem
BINMODE=2555

View File

@ -63,6 +63,7 @@ extern int af; /* address family */
int kread(u_long addr, char *buf, int size);
const char *plural(int);
const char *plurales(int);
const char *pluralies(int);
void protopr(u_long, const char *, int);
void tcp_stats(u_long, const char *, int);