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/PS2MouseDevice.cpp | |
parent | 68c7ca7d3b246c5233dc6c93fa04f731beadafaa (diff) | |
download | serenity-a3edeb5868abbd642d55d25f84c6ef83a7c7c9a2.zip |
Kernel: Add explicit offset parameter to File::read etc
Diffstat (limited to 'Kernel/Devices/PS2MouseDevice.cpp')
-rw-r--r-- | Kernel/Devices/PS2MouseDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Devices/PS2MouseDevice.cpp b/Kernel/Devices/PS2MouseDevice.cpp index 2eec50cc2b..b81ef5b496 100644 --- a/Kernel/Devices/PS2MouseDevice.cpp +++ b/Kernel/Devices/PS2MouseDevice.cpp @@ -293,12 +293,12 @@ u8 PS2MouseDevice::mouse_read() return IO::in8(I8042_BUFFER); } -bool PS2MouseDevice::can_read(const FileDescription&) const +bool PS2MouseDevice::can_read(const FileDescription&, size_t) const { return !m_queue.is_empty(); } -ssize_t PS2MouseDevice::read(FileDescription&, u8* buffer, ssize_t size) +ssize_t PS2MouseDevice::read(FileDescription&, size_t, u8* buffer, ssize_t size) { ASSERT(size > 0); size_t nread = 0; @@ -318,7 +318,7 @@ ssize_t PS2MouseDevice::read(FileDescription&, u8* buffer, ssize_t size) return nread; } -ssize_t PS2MouseDevice::write(FileDescription&, const u8*, ssize_t) +ssize_t PS2MouseDevice::write(FileDescription&, size_t, const u8*, ssize_t) { return 0; } |