summaryrefslogtreecommitdiff
path: root/src/kbd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
commit1ca05b0f393c0201c0e8efe87831edddb6a53532 (patch)
tree4419fdb78cba0962313f8e6bcf35d16a3401183e /src/kbd.c
parentb5bb9db8425b3b463e634874e3a201a354d55ac7 (diff)
downloadqemu-seabios-1ca05b0f393c0201c0e8efe87831edddb6a53532.tar.gz
Be sure to add "void" to all function prototypes that take no args.
Omitting "void" leads to a K&R style declaration which was not intended.
Diffstat (limited to 'src/kbd.c')
-rw-r--r--src/kbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kbd.c b/src/kbd.c
index 39294a7..6f3ae15 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -34,7 +34,7 @@
#define KF2_101KBD (1<<4)
void
-kbd_setup()
+kbd_setup(void)
{
dprintf(3, "init keyboard\n");
u16 x = offsetof(struct bios_data_area_s, kbd_buf);
@@ -220,7 +220,7 @@ handle_16XX(struct bregs *regs)
}
static void
-set_leds()
+set_leds(void)
{
u8 shift_flags = (GET_BDA(kbd_flag0) >> 4) & 0x07;
u8 kbd_led = GET_BDA(kbd_led);