From 762db91ef7d3b2eab00c23250ca61c7f814899c7 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 28 Jun 2014 21:54:34 +0200 Subject: [PATCH] Give getsockopt() a reference to a socklen_t. --- src/net_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_socket.c b/src/net_socket.c index 3b6399b..b2297af 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) { -- 2.25.1