diff options
author | demostanis <demostanis@protonmail.com> | 2022-10-22 15:38:21 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-24 23:29:18 +0100 |
commit | 3e8b5ac92012e19847e536a20a3f0ec7e5c787d3 (patch) | |
tree | 58294f8f5e5eeaa63231876148da783ca81015eb /Kernel/Syscalls/pledge.cpp | |
parent | f485db2501c32bd626d58973c8a34a81e09ca5dc (diff) | |
download | serenity-3e8b5ac92012e19847e536a20a3f0ec7e5c787d3.zip |
AK+Everywhere: Turn bool keep_empty to an enum in split* functions
Diffstat (limited to 'Kernel/Syscalls/pledge.cpp')
-rw-r--r-- | Kernel/Syscalls/pledge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/pledge.cpp b/Kernel/Syscalls/pledge.cpp index 8b2412196e..39c3b86aee 100644 --- a/Kernel/Syscalls/pledge.cpp +++ b/Kernel/Syscalls/pledge.cpp @@ -29,7 +29,7 @@ ErrorOr<FlatPtr> Process::sys$pledge(Userspace<Syscall::SC_pledge_params const*> auto parse_pledge = [&](auto pledge_spec, u32& mask) { auto found_invalid_pledge = true; - pledge_spec.for_each_split_view(' ', false, [&mask, &found_invalid_pledge](auto const& part) { + pledge_spec.for_each_split_view(' ', SplitBehavior::Nothing, [&mask, &found_invalid_pledge](auto const& part) { #define __ENUMERATE_PLEDGE_PROMISE(x) \ if (part == #x##sv) { \ mask |= (1u << (u32)Pledge::x); \ |