Skip to content

Commit 978f1c7

Browse files
rimrulGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
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 <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent eeced10 commit 978f1c7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compat/mingw.c

-9
Original file line numberDiff line numberDiff line change
@@ -2362,15 +2362,6 @@ int mingw_socket(int domain, int type, int protocol)
23622362
ensure_socket_initialization();
23632363
s = WSASocket(domain, type, protocol, NULL, 0, 0);
23642364
if (s == INVALID_SOCKET) {
2365-
/*
2366-
* WSAGetLastError() values are regular BSD error codes
2367-
* biased by WSABASEERR.
2368-
* However, strerror() does not know about networking
2369-
* specific errors, which are values beginning at 38 or so.
2370-
* Therefore, we choose to leave the biased error code
2371-
* in errno so that _if_ someone looks up the code somewhere,
2372-
* then it is at least the number that are usually listed.
2373-
*/
23742365
set_wsa_errno();
23752366
return -1;
23762367
}

0 commit comments

Comments
 (0)