Cleanup
This commit is contained in:
parent
4dd6c7fac7
commit
1e37aab49b
|
@ -86,7 +86,7 @@ static int init_tcp_connection(const struct addrinfo *res,
|
||||||
int on = 0;
|
int on = 0;
|
||||||
if (res->ai_family == AF_INET6)
|
if (res->ai_family == AF_INET6)
|
||||||
{
|
{
|
||||||
if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&on, sizeof(on)) < 0)
|
if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (const char*)&on, sizeof(on)) < 0)
|
||||||
RARCH_WARN("Failed to listen on both IPv6 and IPv4\n");
|
RARCH_WARN("Failed to listen on both IPv6 and IPv4\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue