diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-03 18:42:33 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-03 18:42:33 +0000 |
commit | c5ec7c478098273586b7a5716e30dc82c1e6aba5 (patch) | |
tree | 241ec95305382eac68e212764452ee17655df48f /apps/netutils/tftpc/tftpc_put.c | |
parent | cfc7fe371ad9efc22bded77dc0779ec4eff1a9fd (diff) | |
download | nuttx-c5ec7c478098273586b7a5716e30dc82c1e6aba5.tar.gz nuttx-c5ec7c478098273586b7a5716e30dc82c1e6aba5.tar.bz2 nuttx-c5ec7c478098273586b7a5716e30dc82c1e6aba5.zip |
Pass __KERNEL__ define (or not) to all makes to handle small differences in user-/kernel-builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3459 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/netutils/tftpc/tftpc_put.c')
-rw-r--r-- | apps/netutils/tftpc/tftpc_put.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/netutils/tftpc/tftpc_put.c b/apps/netutils/tftpc/tftpc_put.c index 4d87ba908..c292244a6 100644 --- a/apps/netutils/tftpc/tftpc_put.c +++ b/apps/netutils/tftpc/tftpc_put.c @@ -334,7 +334,7 @@ int tftpput(const char *local, const char *remote, in_addr_t addr, bool binary) if (!packet) { ndbg("packet memory allocation failure\n"); - errno = ENOMEM; + set_errno(ENOMEM); goto errout; } @@ -388,7 +388,7 @@ int tftpput(const char *local, const char *remote, in_addr_t addr, bool binary) if (++retry > TFTP_RETRIES) { ndbg("Retry count exceeded\n"); - errno = ETIMEDOUT; + set_errno(ETIMEDOUT); goto errout_with_sd; } } @@ -455,7 +455,7 @@ int tftpput(const char *local, const char *remote, in_addr_t addr, bool binary) if (++retry > TFTP_RETRIES) { ndbg("Retry count exceeded\n"); - errno = ETIMEDOUT; + set_errno(ETIMEDOUT); goto errout_with_sd; } } |