Remove use of set_errno() from application code.

The normal assignment errno = errcode should work fine now.
This commit is contained in:
Gregory Nutt
2020-05-07 14:07:08 -06:00
committed by Abdelatif Guettouche
parent 8a92862e03
commit b2d8c501f6
13 changed files with 105 additions and 210 deletions

View File

@@ -297,7 +297,7 @@ int tftpput_cb(FAR const char *remote, in_addr_t addr, bool binary,
if (!packet)
{
nerr("ERROR: packet memory allocation failure\n");
set_errno(ENOMEM);
errno = ENOMEM;
goto errout;
}
@@ -342,7 +342,7 @@ int tftpput_cb(FAR const char *remote, in_addr_t addr, bool binary,
if (++retry > TFTP_RETRIES)
{
nerr("ERROR: Retry count exceeded\n");
set_errno(ETIMEDOUT);
errno = ETIMEDOUT;
goto errout_with_sd;
}
}
@@ -409,7 +409,7 @@ int tftpput_cb(FAR const char *remote, in_addr_t addr, bool binary,
if (++retry > TFTP_RETRIES)
{
nerr("ERROR: Retry count exceeded\n");
set_errno(ETIMEDOUT);
errno = ETIMEDOUT;
goto errout_with_sd;
}
}