mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/bgianfo
Commit: 44ffe3e5bb
Pull-request: https://github.com/SerenityOS/serenity/pull/11106
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