mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
test-fuzz: Port to Core::Stream
This commit is contained in:
parent
f7fa88976f
commit
6d7435d251
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/Stream.h>
|
||||||
#include <LibMain/Main.h>
|
#include <LibMain/Main.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
@ -151,8 +151,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
|
|
||||||
auto fn = parse_target_name(type);
|
auto fn = parse_target_name(type);
|
||||||
|
|
||||||
auto file = TRY(Core::File::open(filename, Core::OpenMode::ReadOnly));
|
auto file = TRY(Core::Stream::File::open(filename, Core::Stream::OpenMode::Read));
|
||||||
auto input = file->read_all();
|
auto input = TRY(file->read_all());
|
||||||
|
|
||||||
return fn(input.data(), input.size());
|
return fn(input.data(), input.size());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue