mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:13:33 +08:00
Correct and error in recv() and recvfrom() return value
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4402 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -188,7 +188,15 @@ int ftpd_daemon(int s_argc, char **s_argv)
|
||||
*/
|
||||
|
||||
ret = ftpd_session(handle, 5000);
|
||||
printf("FTP daemon [%d] ftpd_session returned %d\n", g_ftpdglob.pid, ret);
|
||||
|
||||
/* If any interesting happened (i.e., any thing other than a timeout),
|
||||
* then report the interesting event.
|
||||
*/
|
||||
|
||||
if (ret != -ETIMEDOUT)
|
||||
{
|
||||
printf("FTP daemon [%d] ftpd_session returned %d\n", g_ftpdglob.pid, ret);
|
||||
}
|
||||
}
|
||||
|
||||
/* Close the FTPD server and exit (we can get here only if
|
||||
|
||||
Reference in New Issue
Block a user