summaryrefslogtreecommitdiff
path: root/Userland/Utilities/route.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/route.cpp')
-rw-r--r--Userland/Utilities/route.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/route.cpp b/Userland/Utilities/route.cpp
index 93c89a0167..84fe136dcd 100644
--- a/Userland/Utilities/route.cpp
+++ b/Userland/Utilities/route.cpp
@@ -11,6 +11,7 @@
#include <AK/QuickSort.h>
#include <AK/StringView.h>
#include <LibCore/ArgsParser.h>
+#include <LibCore/File.h>
#include <LibCore/ProcessStatisticsReader.h>
#include <LibCore/Stream.h>
#include <LibCore/System.h>
@@ -89,7 +90,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
};
if (modify_action.is_empty()) {
- auto file = TRY(Core::Stream::File::open("/sys/kernel/net/route"sv, Core::Stream::OpenMode::Read));
+ auto file = TRY(Core::File::open("/sys/kernel/net/route"sv, Core::File::OpenMode::Read));
auto file_contents = TRY(file->read_until_eof());
auto json = TRY(JsonValue::from_string(file_contents));