From: proski Date: Mon, 13 Apr 2009 13:00:59 +0000 (+0000) Subject: 2009-04-13 Pavel Roskin X-Git-Tag: 1.98~1026 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=232a769cb204a75091c90030a75eb2952d636480;p=thirdparty%2Fgrub.git 2009-04-13 Pavel Roskin * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes. --- diff --git a/ChangeLog b/ChangeLog index 40b18b275..dd519ce83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-13 Pavel Roskin + + * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes. + 2009-04-13 Felix Zielcke * util/i386/pc/grub-install.in (install_drive): Remove the BSD diff --git a/term/usb_keyboard.c b/term/usb_keyboard.c index 07f7d08b4..d30e6fc7f 100644 --- a/term/usb_keyboard.c +++ b/term/usb_keyboard.c @@ -173,7 +173,6 @@ static int grub_usb_keyboard_getkey (void) { int key; - int key_release; grub_err_t err; unsigned char data[8]; grub_uint64_t currtime; @@ -192,15 +191,15 @@ grub_usb_keyboard_getkey (void) switch (repeat) { - case GRUB_HIDBOOT_REPEAT_NONE: - timeout = 100; - break; case GRUB_HIDBOOT_REPEAT_FIRST: timeout = 500; break; case GRUB_HIDBOOT_REPEAT: timeout = 50; break; + default: + timeout = 100; + break; } /* Wait until the key is released. */