summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-12-29 04:41:38 +0000
committerbde <bde@FreeBSD.org>2003-12-29 04:41:38 +0000
commit870b768c6b023c434beeecf13588347080677ae9 (patch)
tree5fd5a40eeea48c7446f6756582d6e240f7d02a3e /usr.bin
parente288c5ef902411655bc9a78a5a199b9023603d7e (diff)
downloadFreeBSD-src-870b768c6b023c434beeecf13588347080677ae9.zip
FreeBSD-src-870b768c6b023c434beeecf13588347080677ae9.tar.gz
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.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/Makefile2
-rw-r--r--usr.bin/netstat/netstat.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/netstat/Makefile b/usr.bin/netstat/Makefile
index 876e928..ba9adf4 100644
--- a/usr.bin/netstat/Makefile
+++ b/usr.bin/netstat/Makefile
@@ -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
diff --git a/usr.bin/netstat/netstat.h b/usr.bin/netstat/netstat.h
index 6ebf454..ded6f78 100644
--- a/usr.bin/netstat/netstat.h
+++ b/usr.bin/netstat/netstat.h
@@ -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);
OpenPOWER on IntegriCloud