From a3edeb5868abbd642d55d25f84c6ef83a7c7c9a2 Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Fri, 10 Apr 2020 19:44:42 +1000 Subject: Kernel: Add explicit offset parameter to File::read etc --- Kernel/Devices/PS2MouseDevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kernel/Devices/PS2MouseDevice.cpp') 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; } -- cgit v1.2.3