netstat: Don't init vars if they are not defined.

The variables are not available, if there is no INET6 defined.
This commit is contained in:
Christian Mauderer
2016-08-04 14:13:20 +02:00
committed by Sebastian Huber
parent 2fb3a360e7
commit 9907ae4070

View File

@@ -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__ */