X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=64bca947ff08b80c25b4735e68b06321c4e5ae39;hp=a04ba005b67fc616e8291a4f80dddb9ff9c50af8;hb=f5122ccecee095b9185b2324dea7bcd9655462ee;hpb=ef92a5725c47c6e8e801e07190dd7dd3f9cb3a17 diff --git a/src/net.c b/src/net.c index a04ba005..64bca947 100644 --- a/src/net.c +++ b/src/net.c @@ -297,7 +297,7 @@ static void check_network_activity(fd_set * readset, fd_set * writeset) { if(FD_ISSET(c->socket, readset)) { if(c->status.connecting) { c->status.connecting = false; - getsockopt(c->socket, SOL_SOCKET, SO_ERROR, &result, &len); + getsockopt(c->socket, SOL_SOCKET, SO_ERROR, (void *)&result, &len); if(!result) finish_connecting(c);