summaryrefslogtreecommitdiff
path: root/apps/netutils
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-06-23 12:57:03 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-06-23 12:57:03 -0600
commit6fe3f0088157da512fbfd623566ae69af2957eee (patch)
treea9080dfbb9c5e1301103f3e08c405dd2c3605ea0 /apps/netutils
parent08d4aca769f4a4895522ffe93da32ea9a5995061 (diff)
downloadnuttx-6fe3f0088157da512fbfd623566ae69af2957eee.tar.gz
nuttx-6fe3f0088157da512fbfd623566ae69af2957eee.tar.bz2
nuttx-6fe3f0088157da512fbfd623566ae69af2957eee.zip
httpd_fs_open() should return OK on success and ERROR on failure, not 1 and 0
Diffstat (limited to 'apps/netutils')
-rw-r--r--apps/netutils/webserver/httpd_fs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/netutils/webserver/httpd_fs.c b/apps/netutils/webserver/httpd_fs.c
index 8d1cddbab..ef49e230a 100644
--- a/apps/netutils/webserver/httpd_fs.c
+++ b/apps/netutils/webserver/httpd_fs.c
@@ -107,13 +107,14 @@ int httpd_fs_open(const char *name, struct httpd_fs_file *file)
#ifdef CONFIG_NETUTILS_HTTPDFSSTATS
++count[i];
#endif
- return 1;
+ return OK;
}
#ifdef CONFIG_NETUTILS_HTTPDFSSTATS
++i;
#endif
}
- return 0;
+
+ return ERROR;
}
void httpd_fs_init(void)