mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-11 15:35:13 +00:00
httpd_fs_open() should return OK on success and ERROR on failure, not 1 and 0
This commit is contained in:
parent
d7372fbdbc
commit
4fddd6a3f7
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue