summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-04 14:13:20 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-08-04 15:44:12 +0200
commit9907ae4070140fe2ff09506d7b98d5af3ba4ca6b (patch)
tree2e7b807dea175d481a9c88fff33c3678565ffa5d
parent2fb3a360e7907c9192e46cc59ebd7048995363bc (diff)
downloadrtems-libbsd-9907ae4070140fe2ff09506d7b98d5af3ba4ca6b.tar.bz2
netstat: Don't init vars if they are not defined.
The variables are not available, if there is no INET6 defined.
-rw-r--r--freebsd/usr.bin/netstat/inet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/usr.bin/netstat/inet.c b/freebsd/usr.bin/netstat/inet.c
index cbd0932b..e67ef0a6 100644
--- a/freebsd/usr.bin/netstat/inet.c
+++ b/freebsd/usr.bin/netstat/inet.c
@@ -93,9 +93,11 @@ static int udp_done, tcp_done, sdp_done;
void
rtems_bsd_netstat_inet_init(void)
{
+#ifdef INET6
udp_done = 0;
tcp_done = 0;
sdp_done = 0;
+#endif /* INET6 */
}
#endif /* __rtems__ */