From 63e86f792167e6cc2e9600d00b184a3c83fe7498 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 5 Nov 2020 17:30:39 +0100 Subject: Added warning flags and fixed them :) --- kernel/drivers/mouse.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kernel/drivers/mouse.c') diff --git a/kernel/drivers/mouse.c b/kernel/drivers/mouse.c index a5f5d0c..9b34b0a 100644 --- a/kernel/drivers/mouse.c +++ b/kernel/drivers/mouse.c @@ -17,18 +17,18 @@ void mouse_handler() { switch (mouse_cycle) { case 0: - mouse_byte[0] = inb(0x60); + mouse_byte[0] = (char)inb(0x60); if (((mouse_byte[0] >> 3) & 1) == 1) mouse_cycle++; else mouse_cycle = 0; break; case 1: - mouse_byte[1] = inb(0x60); + mouse_byte[1] = (char)inb(0x60); mouse_cycle++; break; case 2: - mouse_byte[2] = inb(0x60); + mouse_byte[2] = (char)inb(0x60); free(event); event = malloc(sizeof(*event)); @@ -71,13 +71,13 @@ void mouse_write(u8 a_write) outb(0x60, a_write); } -char mouse_read() +u8 mouse_read(void) { mouse_wait(0); return inb(0x60); } -void mouse_install() +void mouse_install(void) { u8 status; -- cgit v1.2.3