mirror of
https://github.com/curl/curl.git
synced 2026-07-26 14:37:16 +03:00
socket: use name sockerr for socket error variables
Also: - add comment explaining a `sockerr = errno` (vs. `SOCKERRNO`) assigment. Closes #21998
This commit is contained in:
parent
fb83911aa6
commit
fe2df80a5a
15 changed files with 205 additions and 202 deletions
|
|
@ -1372,9 +1372,9 @@ static CURLcode telnet_do(struct Curl_easy *data, bool *done)
|
|||
case WAIT_OBJECT_0: {
|
||||
events.lNetworkEvents = 0;
|
||||
if(WSAEnumNetworkEvents(sockfd, event_handle, &events) != 0) {
|
||||
int err = SOCKERRNO;
|
||||
if(err != SOCKEINPROGRESS) {
|
||||
infof(data, "WSAEnumNetworkEvents failed (%d)", err);
|
||||
int sockerr = SOCKERRNO;
|
||||
if(sockerr != SOCKEINPROGRESS) {
|
||||
infof(data, "WSAEnumNetworkEvents failed (%d)", sockerr);
|
||||
keepon = FALSE;
|
||||
result = CURLE_READ_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue