mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-18 00:46:30 +00:00
minissdpd: remove warning when IPV6 is disabled
This commit is contained in:
parent
d62ea5eea0
commit
2d783f6e69
@ -99,6 +99,9 @@ ProcessInterfaceWatch(int s, int s_ssdp, int s_ssdp6)
|
|||||||
struct rtattr *rta;
|
struct rtattr *rta;
|
||||||
int ifa_len;
|
int ifa_len;
|
||||||
|
|
||||||
|
#ifndef ENABLE_IPV6
|
||||||
|
(void)s_ssdp6;
|
||||||
|
#endif
|
||||||
iov.iov_base = buffer;
|
iov.iov_base = buffer;
|
||||||
iov.iov_len = sizeof(buffer);
|
iov.iov_len = sizeof(buffer);
|
||||||
|
|
||||||
@ -206,6 +209,9 @@ ProcessInterfaceWatch(int s, int s_ssdp, int s_ssdp6)
|
|||||||
int family = AF_UNSPEC;
|
int family = AF_UNSPEC;
|
||||||
int prefixlen = 0;
|
int prefixlen = 0;
|
||||||
|
|
||||||
|
#ifndef ENABLE_IPV6
|
||||||
|
(void)s_ssdp6;
|
||||||
|
#endif
|
||||||
address[0] = '\0';
|
address[0] = '\0';
|
||||||
ifname[0] = '\0';
|
ifname[0] = '\0';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user