aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2016-08-27 11:06:06 +0000
committerBruce Evans <bde@FreeBSD.org>2016-08-27 11:06:06 +0000
commitde618daaf00d1d54dcf8dd0f059d8ff8e3188811 (patch)
tree9354be7130730e7a99d3daa995ba68e0622459d2
parentbc3aca4bf90cc3ff05ee9c33c58a6b1c8ad056ab (diff)
downloadsrc-de618daaf00d1d54dcf8dd0f059d8ff8e3188811.tar.gz
src-de618daaf00d1d54dcf8dd0f059d8ff8e3188811.zip
Fix build without INET6 and with gcc. A function definition was ifdefed
for INET6, but its protototype was not, and gcc detects the error.
Notes
Notes: svn path=/head/; revision=304895
-rw-r--r--usr.bin/netstat/route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 1cd831b9658c..808f4cd660ef 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -104,7 +104,9 @@ static int ifmap_size;
static struct timespec uptime;
static const char *netname4(in_addr_t, in_addr_t);
+#ifdef INET6
static const char *netname6(struct sockaddr_in6 *, struct sockaddr_in6 *);
+#endif
static void p_rtable_sysctl(int, int);
static void p_rtentry_sysctl(const char *name, struct rt_msghdr *);
static int p_sockaddr(const char *name, struct sockaddr *, struct sockaddr *,