Fix compiler warnings on Windows.

This commit is contained in:
Guus Sliepen 2013-02-20 14:39:24 +01:00
parent 1bb969c930
commit 3847b78ba5
8 changed files with 23 additions and 17 deletions

View file

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