From: Guus Sliepen Date: Sat, 28 Jun 2014 19:54:34 +0000 (+0200) Subject: Give getsockopt() a reference to a socklen_t. X-Git-Tag: release-1.1pre11~93 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=762db91ef7d3b2eab00c23250ca61c7f814899c7;p=tinc Give getsockopt() a reference to a socklen_t. --- diff --git a/src/net_socket.c b/src/net_socket.c index 3b6399bf..b2297af4 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -421,7 +421,7 @@ static void handle_meta_io(void *data, int flags) { if (!socknotconn(sockerrno)) socket_error = sockerrno; else { - int len = sizeof socket_error; + socklen_t len = sizeof socket_error; getsockopt(c->socket, SOL_SOCKET, SO_ERROR, (void *)&socket_error, &len); } if (socket_error) {