mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 08:52:01 +08:00
Remove use of set_errno() from application code.
The normal assignment errno = errcode should work fine now.
This commit is contained in:

committed by
Abdelatif Guettouche

parent
8a92862e03
commit
b2d8c501f6
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user