mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
committed by
Andreas Kling
parent
fcc00c9a27
commit
44ffe3e5bb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user