Skip to content

Commit f2724e0

Browse files
rimrulGit for Windows Build Agent
authored andcommitted
compat/mingw: drop outdated comment
This comment has been true for the longest time; The combination of the two preceding commits made it incorrect, so let's drop that comment. Signed-off-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 08d41a5 commit f2724e0

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

compat/mingw.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,15 +2588,6 @@ int mingw_socket(int domain, int type, int protocol)
25882588
ensure_socket_initialization();
25892589
s = WSASocket(domain, type, protocol, NULL, 0, 0);
25902590
if (s == INVALID_SOCKET) {
2591-
/*
2592-
* WSAGetLastError() values are regular BSD error codes
2593-
* biased by WSABASEERR.
2594-
* However, strerror() does not know about networking
2595-
* specific errors, which are values beginning at 38 or so.
2596-
* Therefore, we choose to leave the biased error code
2597-
* in errno so that _if_ someone looks up the code somewhere,
2598-
* then it is at least the number that are usually listed.
2599-
*/
26002591
set_wsa_errno();
26012592
return -1;
26022593
}

0 commit comments

Comments
 (0)