Skip to content

Commit

Permalink
compat/mingw: drop outdated comment
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rimrul authored and dscho committed Jan 11, 2025
1 parent 78e72dc commit fd6b18f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2362,15 +2362,6 @@ int mingw_socket(int domain, int type, int protocol)
ensure_socket_initialization();
s = WSASocket(domain, type, protocol, NULL, 0, 0);
if (s == INVALID_SOCKET) {
/*
* WSAGetLastError() values are regular BSD error codes
* biased by WSABASEERR.
* However, strerror() does not know about networking
* specific errors, which are values beginning at 38 or so.
* Therefore, we choose to leave the biased error code
* in errno so that _if_ someone looks up the code somewhere,
* then it is at least the number that are usually listed.
*/
set_wsa_errno();
return -1;
}
Expand Down

0 comments on commit fd6b18f

Please sign in to comment.