Fixed windows warning.

This commit is contained in:
irungentoo 2015-04-14 20:56:16 -04:00
parent 4b29aff04a
commit 2ff39d3d54
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -180,7 +180,7 @@ int set_socket_nosigpipe(sock_t sock)
int set_socket_reuseaddr(sock_t sock)
{
int set = 1;
return (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &set, sizeof(set)) == 0);
return (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *)&set, sizeof(set)) == 0);
}
/* Set socket to dual (IPv4 + IPv6 socket)