mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:54:58 +00:00
Utilities: Use default execpromises parameter to pledge(..)
This commit is contained in:
parent
4d0317ae7a
commit
af3751e4dd
18 changed files with 21 additions and 21 deletions
|
@ -49,7 +49,7 @@ ErrorOr<bool> format_file(StringView path, bool inplace)
|
|||
ErrorOr<int> serenity_main(Main::Arguments args)
|
||||
{
|
||||
#ifdef __serenity__
|
||||
TRY(Core::System::pledge("stdio rpath wpath cpath", nullptr));
|
||||
TRY(Core::System::pledge("stdio rpath wpath cpath"));
|
||||
#endif
|
||||
|
||||
bool inplace = false;
|
||||
|
@ -63,7 +63,7 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
|||
|
||||
#ifdef __serenity__
|
||||
if (!inplace)
|
||||
TRY(Core::System::pledge("stdio rpath", nullptr));
|
||||
TRY(Core::System::pledge("stdio rpath"));
|
||||
#endif
|
||||
|
||||
if (files.is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue