summaryrefslogtreecommitdiff
path: root/com32/menu/drain.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/menu/drain.c')
-rw-r--r--com32/menu/drain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/menu/drain.c b/com32/menu/drain.c
index 83ebbdc3..428d9709 100644
--- a/com32/menu/drain.c
+++ b/com32/menu/drain.c
@@ -11,7 +11,7 @@ void drain_keyboard(void)
int rv;
do {
- rv = read(0, &junk, 1);
+ rv = read(0, (char *)&junk, 1);
} while (rv > 0);
junk = 0;
@@ -20,7 +20,7 @@ void drain_keyboard(void)
*(volatile uint8_t *)0x419 = 0; /* Alt-XXX keyboard area */
*(volatile uint16_t *)0x41a = 0x1e; /* Keyboard buffer empty */
*(volatile uint16_t *)0x41c = 0x1e;
- memset((volatile void *)0x41e, 0, 32); /* Clear the actual keyboard buffer */
+ memset((void *)0x41e, 0, 32); /* Clear the actual keyboard buffer */
sti();
}