minissdpd: remove warning when IPV6 is disabled

This commit is contained in:
Thomas Bernard 2018-03-12 20:14:30 +01:00
parent d62ea5eea0
commit 2d783f6e69
1 changed files with 6 additions and 0 deletions

View File

@ -99,6 +99,9 @@ ProcessInterfaceWatch(int s, int s_ssdp, int s_ssdp6)
struct rtattr *rta;
int ifa_len;
#ifndef ENABLE_IPV6
(void)s_ssdp6;
#endif
iov.iov_base = buffer;
iov.iov_len = sizeof(buffer);
@ -206,6 +209,9 @@ ProcessInterfaceWatch(int s, int s_ssdp, int s_ssdp6)
int family = AF_UNSPEC;
int prefixlen = 0;
#ifndef ENABLE_IPV6
(void)s_ssdp6;
#endif
address[0] = '\0';
ifname[0] = '\0';