X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet_socket.c;h=a28be54a62e2511679a578f7186056c265b86220;hb=d298ebe91c9209d139f38b6de2e42bf7c5bb5899;hp=cb2a6dfea699cc3b1ea487847445fce0d3131fc0;hpb=079dcd01794187d2857e1233f6c9930310812593;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index cb2a6dfe..a28be54a 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -377,7 +377,7 @@ static void handle_meta_io(void *data, int flags) { int result; socklen_t len = sizeof result; - getsockopt(c->socket, SOL_SOCKET, SO_ERROR, &result, &len); + getsockopt(c->socket, SOL_SOCKET, SO_ERROR, (void *)&result, &len); if(!result) finish_connecting(c);