diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-09-14 17:32:53 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-19 17:00:10 +0000 |
commit | 6d7435d25186f2c20eff1b4a4f14c415c753f651 (patch) | |
tree | ae0ce91de97f5708feb49b5fd88dfa2a89c17e55 /Userland/Utilities | |
parent | f7fa88976f67c359b6e4ccab0d930ab225eaaadb (diff) | |
download | serenity-6d7435d25186f2c20eff1b4a4f14c415c753f651.zip |
test-fuzz: Port to Core::Stream
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/test-fuzz.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/test-fuzz.cpp b/Userland/Utilities/test-fuzz.cpp index 8a4f96e722..47bdfe338f 100644 --- a/Userland/Utilities/test-fuzz.cpp +++ b/Userland/Utilities/test-fuzz.cpp @@ -6,7 +6,7 @@ #include <AK/String.h> #include <LibCore/ArgsParser.h> -#include <LibCore/File.h> +#include <LibCore/Stream.h> #include <LibMain/Main.h> #include <unistd.h> @@ -151,8 +151,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto fn = parse_target_name(type); - auto file = TRY(Core::File::open(filename, Core::OpenMode::ReadOnly)); - auto input = file->read_all(); + auto file = TRY(Core::Stream::File::open(filename, Core::Stream::OpenMode::Read)); + auto input = TRY(file->read_all()); return fn(input.data(), input.size()); } |