diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-01 23:33:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-01 23:33:39 +0000 |
commit | df12f072cba62c2c458a7845b4e9b30c30a4af33 (patch) | |
tree | e072f7501aa37a4f48d4cfa59111119fff1ab3e9 /apps/netutils/ftpc/ftpc_putfile.c | |
parent | 67861ab4bc9411a36319f48f9aaad1a129fcde9b (diff) | |
download | nuttx-df12f072cba62c2c458a7845b4e9b30c30a4af33.tar.gz nuttx-df12f072cba62c2c458a7845b4e9b30c30a4af33.tar.bz2 nuttx-df12f072cba62c2c458a7845b4e9b30c30a4af33.zip |
Fix some FTP compile errors when debug is on
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3657 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/netutils/ftpc/ftpc_putfile.c')
-rw-r--r-- | apps/netutils/ftpc/ftpc_putfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/netutils/ftpc/ftpc_putfile.c b/apps/netutils/ftpc/ftpc_putfile.c index 6993169d9..ec70e58df 100644 --- a/apps/netutils/ftpc/ftpc_putfile.c +++ b/apps/netutils/ftpc/ftpc_putfile.c @@ -44,6 +44,7 @@ #include <unistd.h> #include <string.h> #include <libgen.h> +#include <errno.h> #include <debug.h> #include <apps/ftpc.h> @@ -398,7 +399,7 @@ int ftp_putfile(SESSION handle, const char *lname, const char *rname, ret = fseek(finstream, session->offset, SEEK_SET); if (ret != OK) { - ndbg("fseek failed: %d\n", errnoo); + ndbg("fseek failed: %d\n", errno); fclose(finstream); return ERROR; } |