summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-04 14:13:20 +0200
committerChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-04 14:39:08 +0200
commit6bf772b86ce874c620609d6a0d0b8a4582f8ded4 (patch)
treef60e7e9f1fe98c7d2f29b3159689d4069a2210c7
parent19e8a6455d7fe7639bbc82820bf5d779de186d25 (diff)
downloadrtems-libbsd-6bf772b86ce874c620609d6a0d0b8a4582f8ded4.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__ */