diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-18 18:13:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-02-18 18:13:30 +0000 |
commit | fadbb925a6a118790d8d661fea3956bb0f76348a (patch) | |
tree | ca4c58d32d12949e8d08cb69a652b5e3f7fd0e58 /apps/examples/ftpd/ftpd_main.c | |
parent | 376af5201c555ee163045a8103d8e592f9a1b1bc (diff) | |
download | nuttx-fadbb925a6a118790d8d661fea3956bb0f76348a.tar.gz nuttx-fadbb925a6a118790d8d661fea3956bb0f76348a.tar.bz2 nuttx-fadbb925a6a118790d8d661fea3956bb0f76348a.zip |
Correct and error in recv() and recvfrom() return value
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4402 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/ftpd/ftpd_main.c')
-rwxr-xr-x | apps/examples/ftpd/ftpd_main.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/examples/ftpd/ftpd_main.c b/apps/examples/ftpd/ftpd_main.c index d4808a4aa..fbabf64de 100755 --- a/apps/examples/ftpd/ftpd_main.c +++ b/apps/examples/ftpd/ftpd_main.c @@ -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 |