diff options
Diffstat (limited to 'Userland/Utilities/sort.cpp')
-rw-r--r-- | Userland/Utilities/sort.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Userland/Utilities/sort.cpp b/Userland/Utilities/sort.cpp index 505da349c4..f499ff2d4c 100644 --- a/Userland/Utilities/sort.cpp +++ b/Userland/Utilities/sort.cpp @@ -7,18 +7,17 @@ #include <AK/QuickSort.h> #include <AK/String.h> #include <AK/Vector.h> +#include <LibCore/System.h> +#include <LibMain/Main.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> -int main([[maybe_unused]] int argc, [[maybe_unused]] char** argv) +ErrorOr<int> serenity_main([[maybe_unused]] Main::Arguments arguments) { - if (pledge("stdio", nullptr) > 0) { - perror("pledge"); - return 1; - } + TRY(Core::System::pledge("stdio"sv)); Vector<String> lines; |