From 6fe3f0088157da512fbfd623566ae69af2957eee Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 23 Jun 2014 12:57:03 -0600 Subject: httpd_fs_open() should return OK on success and ERROR on failure, not 1 and 0 --- apps/netutils/webserver/httpd_fs.c | 5 +++-- 1 file 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) -- cgit v1.2.3 From 7456ccf0351c1ac0b42387695048349ca180ab3d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 23 Jun 2014 12:58:00 -0600 Subject: Update changelog --- apps/ChangeLog.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ChangeLog.txt b/apps/ChangeLog.txt index a94601ff4..5152a1e40 100644 --- a/apps/ChangeLog.txt +++ b/apps/ChangeLog.txt @@ -937,5 +937,6 @@ light (2014-6-16). * apps/system/hex2bin/hex2mem_main: Add a variant application that will write Intel HEX files directly to memory (2014-6-16). - + * netutils/webserver: httpd_fs_open() should return OK on success and + ERROR on failure, not 1 and 0 (2014-6-23) -- cgit v1.2.3