diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2020-04-10 19:44:42 +1000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-10 11:59:30 +0200 |
commit | a3edeb5868abbd642d55d25f84c6ef83a7c7c9a2 (patch) | |
tree | dca1fe766c20f592e45a28b77563cb3e9f40d7e4 /Kernel/Devices/KeyboardDevice.cpp | |
parent | 68c7ca7d3b246c5233dc6c93fa04f731beadafaa (diff) | |
download | serenity-a3edeb5868abbd642d55d25f84c6ef83a7c7c9a2.zip |
Kernel: Add explicit offset parameter to File::read etc
Diffstat (limited to 'Kernel/Devices/KeyboardDevice.cpp')
-rw-r--r-- | Kernel/Devices/KeyboardDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp index 3ee979bc28..d999c7ba09 100644 --- a/Kernel/Devices/KeyboardDevice.cpp +++ b/Kernel/Devices/KeyboardDevice.cpp @@ -573,12 +573,12 @@ KeyboardDevice::~KeyboardDevice() { } -bool KeyboardDevice::can_read(const FileDescription&) const +bool KeyboardDevice::can_read(const FileDescription&, size_t) const { return !m_queue.is_empty(); } -ssize_t KeyboardDevice::read(FileDescription&, u8* buffer, ssize_t size) +ssize_t KeyboardDevice::read(FileDescription&, size_t, u8* buffer, ssize_t size) { ssize_t nread = 0; while (nread < size) { @@ -594,7 +594,7 @@ ssize_t KeyboardDevice::read(FileDescription&, u8* buffer, ssize_t size) return nread; } -ssize_t KeyboardDevice::write(FileDescription&, const u8*, ssize_t) +ssize_t KeyboardDevice::write(FileDescription&, size_t, const u8*, ssize_t) { return 0; } |