summaryrefslogtreecommitdiff
path: root/Userland/Utilities/less.cpp
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2022-04-03 16:16:06 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-04-03 17:13:51 -0700
commitaf3751e4dd7301d1b51a6c4154eaf03b4daf2717 (patch)
tree3552e9d134755cba1006872e6b3eec63f7696647 /Userland/Utilities/less.cpp
parent4d0317ae7a54614eff64e9b60ca6ec391dd978ac (diff)
downloadserenity-af3751e4dd7301d1b51a6c4154eaf03b4daf2717.zip
Utilities: Use default execpromises parameter to `pledge(..)`
Diffstat (limited to 'Userland/Utilities/less.cpp')
-rw-r--r--Userland/Utilities/less.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/less.cpp b/Userland/Utilities/less.cpp
index de7fef050b..e840c8737b 100644
--- a/Userland/Utilities/less.cpp
+++ b/Userland/Utilities/less.cpp
@@ -524,7 +524,7 @@ static void cat_file(FILE* file)
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
- TRY(Core::System::pledge("stdio rpath tty sigaction", nullptr));
+ TRY(Core::System::pledge("stdio rpath tty sigaction"));
char const* filename = "-";
char const* prompt = "?f%f :.(line %l)?e (END):.";
@@ -557,7 +557,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
g_resized = true;
});
- TRY(Core::System::pledge("stdio tty", nullptr));
+ TRY(Core::System::pledge("stdio tty"));
if (emulate_more) {
// Configure options that match more's behavior