mirror of
https://github.com/curl/curl.git
synced 2026-07-28 07:23:07 +03:00
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
This commit is contained in:
parent
aa4435c23b
commit
4894ce16fc
9 changed files with 31 additions and 72 deletions
|
|
@ -749,7 +749,7 @@ static void sendtftp(struct testcase *test, struct formats *pf)
|
|||
do {
|
||||
size = readit(test, &dp, pf->f_convert);
|
||||
if (size < 0) {
|
||||
nak(errno + 100);
|
||||
nak(ERRNO + 100);
|
||||
return;
|
||||
}
|
||||
dp->th_opcode = htons((u_short)DATA);
|
||||
|
|
@ -864,7 +864,7 @@ send_ack:
|
|||
size = writeit(test, &dp, (int)(n - 4), pf->f_convert);
|
||||
if (size != (n-4)) { /* ahem */
|
||||
if (size < 0)
|
||||
nak(errno + 100);
|
||||
nak(ERRNO + 100);
|
||||
else
|
||||
nak(ENOSPACE);
|
||||
goto abort;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue