summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/setuid.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-16 16:44:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-16 21:29:36 +0200
commitbc3076f8944e5a4f72b15e4e13c16b2c3e2f2080 (patch)
tree95219ba7fb9555dae2876041cc2e30a28556e057 /Kernel/Syscalls/setuid.cpp
parentca3cae81eb8e20d63e36e7359a776af5eb4d5ea2 (diff)
downloadserenity-bc3076f8944e5a4f72b15e4e13c16b2c3e2f2080.zip
Kernel: Remove various other uses of ssize_t
Diffstat (limited to 'Kernel/Syscalls/setuid.cpp')
-rw-r--r--Kernel/Syscalls/setuid.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/Syscalls/setuid.cpp b/Kernel/Syscalls/setuid.cpp
index 729a9f2196..0269e71464 100644
--- a/Kernel/Syscalls/setuid.cpp
+++ b/Kernel/Syscalls/setuid.cpp
@@ -148,11 +148,9 @@ KResultOr<int> Process::sys$setresgid(gid_t new_rgid, gid_t new_egid, gid_t new_
return 0;
}
-KResultOr<int> Process::sys$setgroups(ssize_t count, Userspace<const gid_t*> user_gids)
+KResultOr<int> Process::sys$setgroups(size_t count, Userspace<const gid_t*> user_gids)
{
REQUIRE_PROMISE(id);
- if (count < 0)
- return EINVAL;
if (!is_superuser())
return EPERM;