Skip to content

Commit 7682878

Browse files
rimruldscho
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 df5c8c5 commit 7682878

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
@@ -2336,15 +2336,6 @@ int mingw_socket(int domain, int type, int protocol)
23362336
ensure_socket_initialization();
23372337
s = WSASocket(domain, type, protocol, NULL, 0, 0);
23382338
if (s == INVALID_SOCKET) {
2339-
/*
2340-
* WSAGetLastError() values are regular BSD error codes
2341-
* biased by WSABASEERR.
2342-
* However, strerror() does not know about networking
2343-
* specific errors, which are values beginning at 38 or so.
2344-
* Therefore, we choose to leave the biased error code
2345-
* in errno so that _if_ someone looks up the code somewhere,
2346-
* then it is at least the number that are usually listed.
2347-
*/
23482339
set_wsa_errno();
23492340
return -1;
23502341
}

0 commit comments

Comments
 (0)