mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 06:17:30 +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:

committed by
Sebastian Huber

parent
2fb3a360e7
commit
9907ae4070
@@ -93,9 +93,11 @@ static int udp_done, tcp_done, sdp_done;
|
|||||||
void
|
void
|
||||||
rtems_bsd_netstat_inet_init(void)
|
rtems_bsd_netstat_inet_init(void)
|
||||||
{
|
{
|
||||||
|
#ifdef INET6
|
||||||
udp_done = 0;
|
udp_done = 0;
|
||||||
tcp_done = 0;
|
tcp_done = 0;
|
||||||
sdp_done = 0;
|
sdp_done = 0;
|
||||||
|
#endif /* INET6 */
|
||||||
}
|
}
|
||||||
#endif /* __rtems__ */
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user