From ac71775de5a71945e004f46b184dde4f628d112b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 Mar 2021 13:49:16 +0100 Subject: Kernel: Make all syscall functions return KResultOr This makes it a lot easier to return errors since we no longer have to worry about negating EFOO errors and can just return them flat. --- Kernel/Syscalls/rmdir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Syscalls/rmdir.cpp') diff --git a/Kernel/Syscalls/rmdir.cpp b/Kernel/Syscalls/rmdir.cpp index 56da04f8ff..c5959d09ea 100644 --- a/Kernel/Syscalls/rmdir.cpp +++ b/Kernel/Syscalls/rmdir.cpp @@ -30,7 +30,7 @@ namespace Kernel { -int Process::sys$rmdir(Userspace user_path, size_t path_length) +KResultOr Process::sys$rmdir(Userspace user_path, size_t path_length) { REQUIRE_PROMISE(cpath); auto path = get_syscall_path_argument(user_path, path_length); -- cgit v1.2.3