8000 win32: getsockopt takes a `char *` instead of a `void *` · libgit2/libgit2@3676211 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3676211

Browse files
committed
win32: getsockopt takes a char * instead of a void *
Monsters.
1 parent 527cdfe commit 3676211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libgit2/streams/socket.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ static int handle_sockerr(GIT_SOCKET socket)
103103
int sockerr;
104104
socklen_t errlen = sizeof(sockerr);
105105

106-
if (getsockopt(socket, SOL_SOCKET, SO_ERROR, &sockerr, &errlen) < 0)
106+
if (getsockopt(socket, SOL_SOCKET, SO_ERROR,
107+
(void *)&sockerr, &errlen) < 0)
107108
return -1;
108109

109110
if (sockerr == ETIMEDOUT)

0 commit comments

Comments
 (0)
0