1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

LibCore: Allow System::pledge execpromises argument to be omitted

It appears that we don't have almost no cases of a callers passing
exec promises when they call `pledge()`. To simplify the code a bit we
add a default parameter that will pass nullptr for us to `pledge()`.
This commit is contained in:
Brian Gianforcaro 2021-11-27 14:23:58 -08:00 committed by Andreas Kling
parent fcc00c9a27
commit 44ffe3e5bb

View file

@ -13,7 +13,7 @@
namespace Core::System {
#ifdef __serenity__
ErrorOr<void> pledge(StringView promises, StringView execpromises);
ErrorOr<void> pledge(StringView promises, StringView execpromises = {});
ErrorOr<void> unveil(StringView path, StringView permissions);
ErrorOr<Array<int, 2>> pipe2(int flags);
#endif