Skip to content

Commit d00bbff

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 <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0e99335 commit d00bbff

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

compat/mingw.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,15 +2385,6 @@ int mingw_socket(int domain, int type, int protocol)
23852385
ensure_socket_initialization();
23862386
s = WSASocket(domain, type, protocol, NULL, 0, 0);
23872387
if (s == INVALID_SOCKET) {
2388-
/*
2389-
* WSAGetLastError() values are regular BSD error codes
2390-
* biased by WSABASEERR.
2391-
* However, strerror() does not know about networking
2392-
* specific errors, which are values beginning at 38 or so.
2393-
* Therefore, we choose to leave the biased error code
2394-
* in errno so that _if_ someone looks up the code somewhere,
2395-
* then it is at least the number that are usually listed.
2396-
*/
23972388
set_wsa_errno();
23982389
return -1;
23992390
}

0 commit comments

Comments
 (0)