summaryrefslogtreecommitdiff
path: root/Userland/Utilities/cmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/cmp.cpp')
-rw-r--r--Userland/Utilities/cmp.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Userland/Utilities/cmp.cpp b/Userland/Utilities/cmp.cpp
index 8837098992..ac213cb88b 100644
--- a/Userland/Utilities/cmp.cpp
+++ b/Userland/Utilities/cmp.cpp
@@ -5,20 +5,21 @@
*/
#include <LibCore/ArgsParser.h>
+#include <LibCore/File.h>
#include <LibCore/Stream.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
#include <unistd.h>
-static ErrorOr<NonnullOwnPtr<Core::Stream::BufferedFile>> open_file_or_stdin(DeprecatedString const& filename)
+static ErrorOr<NonnullOwnPtr<Core::BufferedFile>> open_file_or_stdin(DeprecatedString const& filename)
{
- OwnPtr<Core::Stream::File> file;
+ OwnPtr<Core::File> file;
if (filename == "-") {
- file = TRY(Core::Stream::File::adopt_fd(STDIN_FILENO, Core::Stream::OpenMode::Read));
+ file = TRY(Core::File::adopt_fd(STDIN_FILENO, Core::File::OpenMode::Read));
} else {
- file = TRY(Core::Stream::File::open(filename, Core::Stream::OpenMode::Read));
+ file = TRY(Core::File::open(filename, Core::File::OpenMode::Read));
}
- return TRY(Core::Stream::BufferedFile::create(file.release_nonnull()));
+ return TRY(Core::BufferedFile::create(file.release_nonnull()));
}
ErrorOr<int> serenity_main(Main::Arguments arguments)