diff options
Diffstat (limited to 'src/kernel/fs/vfs.c')
-rw-r--r-- | src/kernel/fs/vfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/fs/vfs.c b/src/kernel/fs/vfs.c index 6d29eed..0098d3b 100644 --- a/src/kernel/fs/vfs.c +++ b/src/kernel/fs/vfs.c @@ -6,6 +6,7 @@ #include <kernel/memory/alloc.h> #include <kernel/system.h> +struct tree *fs_tree; struct fs_node *fs_root = NULL; uint32_t fs_read(struct fs_node *node, uint32_t offset, uint32_t size, char *buf) @@ -154,8 +155,7 @@ struct fs_node *vfs_get_dir(struct fs_node *node, char *name) char *basename(char *name) { - int i; - for (i = strlen(name); i >= 0; i--) + for (int i = strlen(name); i >= 0; i--) if (name[i] == '/') return &name[i + 1]; |