Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2016 11:06:06 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r304895 - head/usr.bin/netstat
Message-ID:  <201608271106.u7RB669G009115@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bde
Date: Sat Aug 27 11:06:06 2016
New Revision: 304895
URL: https://svnweb.freebsd.org/changeset/base/304895

Log:
  Fix build without INET6 and with gcc.  A function definition was ifdefed
  for INET6, but its protototype was not, and gcc detects the error.

Modified:
  head/usr.bin/netstat/route.c

Modified: head/usr.bin/netstat/route.c
==============================================================================
--- head/usr.bin/netstat/route.c	Sat Aug 27 10:56:04 2016	(r304894)
+++ head/usr.bin/netstat/route.c	Sat Aug 27 11:06:06 2016	(r304895)
@@ -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 *,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608271106.u7RB669G009115>