httpd_fs_open() should return OK on success and ERROR on failure, not 1 and 0

This commit is contained in:
Gregory Nutt 2014-06-23 12:57:03 -06:00
parent d7372fbdbc
commit 4fddd6a3f7

View File

@ -107,13 +107,14 @@ int httpd_fs_open(const char *name, struct httpd_fs_file *file)
#ifdef CONFIG_NETUTILS_HTTPDFSSTATS #ifdef CONFIG_NETUTILS_HTTPDFSSTATS
++count[i]; ++count[i];
#endif #endif
return 1; return OK;
} }
#ifdef CONFIG_NETUTILS_HTTPDFSSTATS #ifdef CONFIG_NETUTILS_HTTPDFSSTATS
++i; ++i;
#endif #endif
} }
return 0;
return ERROR;
} }
void httpd_fs_init(void) void httpd_fs_init(void)