diff options
Diffstat (limited to 'Userland/Utilities/gunzip.cpp')
-rw-r--r-- | Userland/Utilities/gunzip.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Utilities/gunzip.cpp b/Userland/Utilities/gunzip.cpp index 1c5b395b0f..531c753e3f 100644 --- a/Userland/Utilities/gunzip.cpp +++ b/Userland/Utilities/gunzip.cpp @@ -6,11 +6,12 @@ #include <LibCompress/Gzip.h> #include <LibCore/ArgsParser.h> +#include <LibCore/File.h> #include <LibCore/System.h> #include <LibMain/Main.h> #include <unistd.h> -static ErrorOr<void> decompress_file(NonnullOwnPtr<Core::Stream::File> input_stream, AK::Stream& output_stream) +static ErrorOr<void> decompress_file(NonnullOwnPtr<Core::File> input_stream, AK::Stream& output_stream) { auto gzip_stream = Compress::GzipDecompressor { move(input_stream) }; @@ -50,8 +51,8 @@ ErrorOr<int> serenity_main(Main::Arguments args) output_filename = filename; } - auto input_stream_result = TRY(Core::Stream::File::open(input_filename, Core::Stream::OpenMode::Read)); - auto output_stream = write_to_stdout ? TRY(Core::Stream::File::standard_output()) : TRY(Core::Stream::File::open(output_filename, Core::Stream::OpenMode::Write)); + auto input_stream_result = TRY(Core::File::open(input_filename, Core::File::OpenMode::Read)); + auto output_stream = write_to_stdout ? TRY(Core::File::standard_output()) : TRY(Core::File::open(output_filename, Core::File::OpenMode::Write)); TRY(decompress_file(move(input_stream_result), *output_stream)); |