mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-06 13:13:00 +08:00
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:
parent
19e8a6455d
commit
6bf772b86c
@ -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__ */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user