mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed windows warning.
This commit is contained in:
parent
4b29aff04a
commit
2ff39d3d54
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user