diff options
Diffstat (limited to 'Userland/Services/KeyboardPreferenceLoader/main.cpp')
-rw-r--r-- | Userland/Services/KeyboardPreferenceLoader/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/KeyboardPreferenceLoader/main.cpp b/Userland/Services/KeyboardPreferenceLoader/main.cpp index 1d6ab4112c..6fac3009fc 100644 --- a/Userland/Services/KeyboardPreferenceLoader/main.cpp +++ b/Userland/Services/KeyboardPreferenceLoader/main.cpp @@ -5,7 +5,7 @@ */ #include <LibCore/ConfigFile.h> -#include <LibCore/File.h> +#include <LibCore/DeprecatedFile.h> #include <LibCore/System.h> #include <LibMain/Main.h> #include <errno.h> @@ -38,7 +38,7 @@ ErrorOr<int> serenity_main(Main::Arguments) } bool enable_num_lock = keyboard_settings_config->read_bool_entry("StartupEnable", "NumLock", true); - auto keyboard_device = TRY(Core::File::open("/dev/input/keyboard/0", Core::OpenMode::ReadOnly)); + auto keyboard_device = TRY(Core::DeprecatedFile::open("/dev/input/keyboard/0", Core::OpenMode::ReadOnly)); TRY(Core::System::ioctl(keyboard_device->fd(), KEYBOARD_IOCTL_SET_NUM_LOCK, enable_num_lock)); return 0; |