From 4fddd6a3f763ebd1040e09d70716dc8151a6b37b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 23 Jun 2014 12:57:03 -0600 Subject: [PATCH] httpd_fs_open() should return OK on success and ERROR on failure, not 1 and 0 --- netutils/webserver/httpd_fs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netutils/webserver/httpd_fs.c b/netutils/webserver/httpd_fs.c index 8d1cddbab..ef49e230a 100644 --- a/netutils/webserver/httpd_fs.c +++ b/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)