summaryrefslogtreecommitdiff
path: root/Kernel/Devices/ZeroDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Devices/ZeroDevice.h')
-rw-r--r--Kernel/Devices/ZeroDevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/ZeroDevice.h b/Kernel/Devices/ZeroDevice.h
index 33161b326f..d5c627d141 100644
--- a/Kernel/Devices/ZeroDevice.h
+++ b/Kernel/Devices/ZeroDevice.h
@@ -22,8 +22,8 @@ private:
ZeroDevice();
// ^CharacterDevice
- virtual KResultOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override;
- virtual KResultOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override;
+ virtual ErrorOr<size_t> read(OpenFileDescription&, u64, UserOrKernelBuffer&, size_t) override;
+ virtual ErrorOr<size_t> write(OpenFileDescription&, u64, const UserOrKernelBuffer&, size_t) override;
virtual bool can_read(const OpenFileDescription&, size_t) const override;
virtual bool can_write(const OpenFileDescription&, size_t) const override { return true; }
virtual StringView class_name() const override { return "ZeroDevice"sv; }