Commit 03eebab8 by Edward Thomson

win32: getsockopt takes a `char *` instead of a `void *`

Monsters.
parent 02ab53ce
...@@ -103,7 +103,8 @@ static int handle_sockerr(GIT_SOCKET socket) ...@@ -103,7 +103,8 @@ static int handle_sockerr(GIT_SOCKET socket)
int sockerr; int sockerr;
socklen_t errlen = sizeof(sockerr); socklen_t errlen = sizeof(sockerr);
if (getsockopt(socket, SOL_SOCKET, SO_ERROR, &sockerr, &errlen) < 0) if (getsockopt(socket, SOL_SOCKET, SO_ERROR,
(void *)&sockerr, &errlen) < 0)
return -1; return -1;
if (sockerr == ETIMEDOUT) if (sockerr == ETIMEDOUT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment