diff options
Diffstat (limited to 'Kernel/Devices/ZeroDevice.cpp')
-rw-r--r-- | Kernel/Devices/ZeroDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/ZeroDevice.cpp b/Kernel/Devices/ZeroDevice.cpp index 299ecaac3a..dfc3df9e37 100644 --- a/Kernel/Devices/ZeroDevice.cpp +++ b/Kernel/Devices/ZeroDevice.cpp @@ -44,7 +44,7 @@ bool ZeroDevice::can_read(const FileDescription&, size_t) const return true; } -KResultOr<size_t> ZeroDevice::read(FileDescription&, size_t, UserOrKernelBuffer& buffer, size_t size) +KResultOr<size_t> ZeroDevice::read(FileDescription&, u64, UserOrKernelBuffer& buffer, size_t size) { ssize_t count = min(static_cast<size_t>(PAGE_SIZE), size); if (!buffer.memset(0, count)) @@ -52,7 +52,7 @@ KResultOr<size_t> ZeroDevice::read(FileDescription&, size_t, UserOrKernelBuffer& return count; } -KResultOr<size_t> ZeroDevice::write(FileDescription&, size_t, const UserOrKernelBuffer&, size_t size) +KResultOr<size_t> ZeroDevice::write(FileDescription&, u64, const UserOrKernelBuffer&, size_t size) { return min(static_cast<size_t>(PAGE_SIZE), size); } |