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
parent 19e8a6455d
commit 6bf772b86c

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