mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Add support for Windriver's Diab v4 (stricter C89)
This commit is contained in:
1 parent
4717a15c17
commit
5b023cb85b
19 files changed
+347
-215
No files matched your search
@@ -86,7 +86,8 @@ static void mg_fs_ls_fn(const char *filename, void *param) {
|
||||
}
|
||||
|
||||
bool mg_fs_ls(struct mg_fs *fs, const char *path, char *buf, size_t len) {
|
||||
struct mg_str s = {buf, len};
|
||||
struct mg_str s;
|
||||
s.buf = buf, s.len = len;
|
||||
fs->ls(path, mg_fs_ls_fn, &s);
|
||||
return buf[0] != '\0';
|
||||
}
|
||||
Reference in new issue
Block a user