mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-04 03:22:18 -06:00
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>
This commit is contained in:
parent
6fe1792d20
commit
6c78e58121
@ -2574,15 +2574,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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user