Give getsockopt() a reference to a socklen_t.

This commit is contained in:
Guus Sliepen 2014-06-28 21:54:34 +02:00
parent e57daac63b
commit 762db91ef7

View file

@ -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) {