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/webclient/webclient.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/webclient/webclient.c')
-rw-r--r-- | apps/netutils/webclient/webclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/netutils/webclient/webclient.c b/apps/netutils/webclient/webclient.c index 2c5108a4a..e52f592f5 100644 --- a/apps/netutils/webclient/webclient.c +++ b/apps/netutils/webclient/webclient.c @@ -431,7 +431,7 @@ int wget(FAR const char *url, FAR char *buffer, int buflen, if (ret != 0) { ndbg("Malformed HTTP URL: %s\n", url); - errno = -ret; + set_errno(-ret); return ERROR; } nvdbg("hostname='%s' filename='%s'\n", ws.hostname, ws.filename); @@ -576,7 +576,7 @@ int wget(FAR const char *url, FAR char *buffer, int buflen, return OK; errout_with_errno: - errno = -ret; + set_errno(-ret); errout: close(sockfd); return ERROR; |