From 1f5496e43be1178cc2254834cf12a28017cbe49a Mon Sep 17 00:00:00 2001 From: notsecure Date: Fri, 27 Jun 2014 07:38:36 -0400 Subject: remove pointer type warnings when building with mingw --- toxcore/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/network.c') diff --git a/toxcore/network.c b/toxcore/network.c index 1217238a..05b2ce2e 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -181,13 +181,13 @@ int set_socket_dualstack(sock_t sock) { int ipv6only = 0; socklen_t optsize = sizeof(ipv6only); - int res = getsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, &optsize); + int res = getsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&ipv6only, &optsize); if ((res == 0) && (ipv6only == 0)) return 1; ipv6only = 0; - return (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, sizeof(ipv6only)) == 0); + return (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&ipv6only, sizeof(ipv6only)) == 0); } -- cgit v1.2.3