diff options
author | Marvin Borner | 2021-03-21 12:40:41 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-21 12:46:08 +0100 |
commit | 09c3bdb186868204cb03d457244e05e12eb685d6 (patch) | |
tree | 7bf59794173d700df08ad303acd6c5a49193a9eb /kernel/drivers/mouse.c | |
parent | 68a0ad7f21ba07b93cd63613996e27afd8780f9c (diff) |
Hardened syscalls
Diffstat (limited to 'kernel/drivers/mouse.c')
-rw-r--r-- | kernel/drivers/mouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/mouse.c b/kernel/drivers/mouse.c index 8545099..ad36cc4 100644 --- a/kernel/drivers/mouse.c +++ b/kernel/drivers/mouse.c @@ -84,12 +84,12 @@ static u8 mouse_serial_read(void) return inb(0x60); } -static s32 mouse_ready(void) +static res mouse_ready(void) { return !stack_empty(queue); } -static s32 mouse_read(void *buf, u32 offset, u32 count, struct device *dev) +static res mouse_read(void *buf, u32 offset, u32 count, struct device *dev) { (void)dev; if (stack_empty(queue)) |