diff options
author | Marvin Borner | 2020-11-05 17:30:39 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-05 17:32:53 +0100 |
commit | 63e86f792167e6cc2e9600d00b184a3c83fe7498 (patch) | |
tree | 31e2d583be3ebf34782f6ec37f6c524657c40686 /kernel/drivers/mouse.c | |
parent | 916fca2161e76de67a5106b90baf00a57f2a0512 (diff) |
Added warning flags and fixed them :)
Diffstat (limited to 'kernel/drivers/mouse.c')
-rw-r--r-- | kernel/drivers/mouse.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |