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:
parent
fcc00c9a27
commit
44ffe3e5bb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue