summaryrefslogtreecommitdiff
path: root/Userland/Utilities/reboot.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-02-09 03:02:46 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:50:07 +0000
commit606a3982f34d777f121fcc4aa964141199676c20 (patch)
tree836fef41d11f1b77f4dac7d699e5c9f720ee4ff1 /Userland/Utilities/reboot.cpp
parenta96339b72b3b417ffaa4fbb4e7575149f749acaa (diff)
downloadserenity-606a3982f34d777f121fcc4aa964141199676c20.zip
LibCore: Move Stream-based file into the `Core` namespace
Diffstat (limited to 'Userland/Utilities/reboot.cpp')
-rw-r--r--Userland/Utilities/reboot.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/reboot.cpp b/Userland/Utilities/reboot.cpp
index 2c24c9b225..2aea62645b 100644
--- a/Userland/Utilities/reboot.cpp
+++ b/Userland/Utilities/reboot.cpp
@@ -5,12 +5,13 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
+#include <LibCore/File.h>
#include <LibCore/Stream.h>
#include <LibMain/Main.h>
ErrorOr<int> serenity_main(Main::Arguments)
{
- auto file = TRY(Core::Stream::File::open("/sys/kernel/power_state"sv, Core::Stream::OpenMode::Write));
+ auto file = TRY(Core::File::open("/sys/kernel/power_state"sv, Core::File::OpenMode::Write));
const DeprecatedString file_contents = "1";
TRY(file->write(file_contents.bytes()));