From 7acf810e81491b08410df1b7bb886bd11b44cd98 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 14 Nov 2021 17:46:20 +0100 Subject: shared: use a single implementation of mem* functions everywhere --- src/kernel/vfs/mount.c | 2 +- src/kernel/vfs/path.c | 1 + src/kernel/vfs/root.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs') diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c index b6b3e8d..c962ba5 100644 --- a/src/kernel/vfs/mount.c +++ b/src/kernel/vfs/mount.c @@ -1,6 +1,6 @@ #include -#include #include +#include struct vfs_mount *vfs_mount_seed(void) { struct vfs_mount *mount = kmalloc(sizeof *mount); diff --git a/src/kernel/vfs/path.c b/src/kernel/vfs/path.c index 096d3fe..df5f00f 100644 --- a/src/kernel/vfs/path.c +++ b/src/kernel/vfs/path.c @@ -1,5 +1,6 @@ #include #include +#include int path_simplify(const char *in, char *out, size_t len) { if (len == 0) return -1; // empty paths are invalid diff --git a/src/kernel/vfs/root.c b/src/kernel/vfs/root.c index 834bed7..adf1bfe 100644 --- a/src/kernel/vfs/root.c +++ b/src/kernel/vfs/root.c @@ -1,8 +1,8 @@ #include #include #include -#include #include +#include enum { HANDLE_ROOT, -- cgit v1.2.3