mirror of
https://github.com/curl/curl.git
synced 2026-08-03 06:10:28 +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
|
|
@ -1197,9 +1197,9 @@ static CURLcode tftp_multi_statemach(struct Curl_easy *data, bool *done)
|
|||
|
||||
if(rc == -1) {
|
||||
/* bail out */
|
||||
int error = SOCKERRNO;
|
||||
int sockerr = SOCKERRNO;
|
||||
char buffer[STRERROR_LEN];
|
||||
failf(data, "%s", curlx_strerror(error, buffer, sizeof(buffer)));
|
||||
failf(data, "%s", curlx_strerror(sockerr, buffer, sizeof(buffer)));
|
||||
state->event = TFTP_EVENT_ERROR;
|
||||
}
|
||||
else if(rc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue