From 09aa97f712f6988ba6cdb041a4708045a574b03b Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 25 Apr 2014 17:31:04 -0400 Subject: Fixed issue. --- toxcore/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore') diff --git a/toxcore/network.c b/toxcore/network.c index 7813ab03..6a7661c4 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -172,7 +172,7 @@ int set_socket_nosigpipe(sock_t sock) */ int set_socket_dualstack(sock_t sock) { - char ipv6only = 0; + int ipv6only = 0; socklen_t optsize = sizeof(ipv6only); int res = getsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, &optsize); -- cgit v1.2.3