Fix all warnings when compiling with mingw64.

This commit is contained in:
Guus Sliepen 2010-05-01 15:39:59 +02:00
parent ef92a5725c
commit f5122ccece
6 changed files with 22 additions and 15 deletions

View file

@ -297,7 +297,7 @@ static void check_network_activity(fd_set * readset, fd_set * writeset) {
if(FD_ISSET(c->socket, readset)) {
if(c->status.connecting) {
c->status.connecting = false;
getsockopt(c->socket, SOL_SOCKET, SO_ERROR, &result, &len);
getsockopt(c->socket, SOL_SOCKET, SO_ERROR, (void *)&result, &len);
if(!result)
finish_connecting(c);