aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/keyboard.c
diff options
context:
space:
mode:
authorMarvin Borner2021-03-21 12:40:41 +0100
committerMarvin Borner2021-03-21 12:46:08 +0100
commit09c3bdb186868204cb03d457244e05e12eb685d6 (patch)
tree7bf59794173d700df08ad303acd6c5a49193a9eb /kernel/drivers/keyboard.c
parent68a0ad7f21ba07b93cd63613996e27afd8780f9c (diff)
Hardened syscalls
Diffstat (limited to 'kernel/drivers/keyboard.c')
-rw-r--r--kernel/drivers/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/keyboard.c b/kernel/drivers/keyboard.c
index 79cd579..b123bcc 100644
--- a/kernel/drivers/keyboard.c
+++ b/kernel/drivers/keyboard.c
@@ -61,7 +61,7 @@ static void keyboard_rate(void)
outb(0x60, 0x0); // Rate{00000} Delay{00} 0
}*/
-static s32 keyboard_read(void *buf, u32 offset, u32 count, struct device *dev)
+static res keyboard_read(void *buf, u32 offset, u32 count, struct device *dev)
{
UNUSED(dev);
if (stack_empty(queue))
@@ -73,7 +73,7 @@ static s32 keyboard_read(void *buf, u32 offset, u32 count, struct device *dev)
return MIN(count, sizeof(*e));
}
-static s32 keyboard_ready(void)
+static res keyboard_ready(void)
{
return !stack_empty(queue);
}