diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 15:26:30 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 15:26:30 -0600 |
commit | 76d6af0fd310967d8bf08d01cfc1db00e4a0c757 (patch) | |
tree | 963a7f1a3e29449a2389cfbe0053d608e7e9d16a /apps/netutils/webserver | |
parent | 6b0412f5128e2fdf94852de586b3f90cbf476240 (diff) | |
download | nuttx-76d6af0fd310967d8bf08d01cfc1db00e4a0c757.tar.gz nuttx-76d6af0fd310967d8bf08d01cfc1db00e4a0c757.tar.bz2 nuttx-76d6af0fd310967d8bf08d01cfc1db00e4a0c757.zip |
Fixes for more issues found by cppcheck
Diffstat (limited to 'apps/netutils/webserver')
-rw-r--r-- | apps/netutils/webserver/httpd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/netutils/webserver/httpd.c b/apps/netutils/webserver/httpd.c index 05bf50a1b..f177a51ea 100644 --- a/apps/netutils/webserver/httpd.c +++ b/apps/netutils/webserver/httpd.c @@ -736,8 +736,7 @@ static inline int httpd_parse(struct httpd_state *pstate) static void *httpd_handler(void *arg) { struct httpd_state *pstate = (struct httpd_state *)malloc(sizeof(struct httpd_state)); - int sockfd = (int)arg; - int ret = ERROR; + int sockfd = (int)arg; nvdbg("[%d] Started\n", sockfd); @@ -762,11 +761,11 @@ static void *httpd_handler(void *arg) status = httpd_parse(pstate); if (status >= 400) { - ret = httpd_senderror(pstate, status); + (void)httpd_senderror(pstate, status); } else { - ret = httpd_sendfile(pstate); + (void) httpd_sendfile(pstate); } #ifndef CONFIG_NETUTILS_HTTPD_KEEPALIVE_DISABLE |