2009-04-13 Pavel Roskin <proski@gnu.org>

* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
This commit is contained in:
proski 2009-04-13 13:00:59 +00:00
parent c301203905
commit 232a769cb2
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2009-04-13 Pavel Roskin <proski@gnu.org>
* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
2009-04-13 Felix Zielcke <fzielcke@z-51.de> 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
* util/i386/pc/grub-install.in (install_drive): Remove the BSD * util/i386/pc/grub-install.in (install_drive): Remove the BSD

View file

@ -173,7 +173,6 @@ static int
grub_usb_keyboard_getkey (void) grub_usb_keyboard_getkey (void)
{ {
int key; int key;
int key_release;
grub_err_t err; grub_err_t err;
unsigned char data[8]; unsigned char data[8];
grub_uint64_t currtime; grub_uint64_t currtime;
@ -192,15 +191,15 @@ grub_usb_keyboard_getkey (void)
switch (repeat) switch (repeat)
{ {
case GRUB_HIDBOOT_REPEAT_NONE:
timeout = 100;
break;
case GRUB_HIDBOOT_REPEAT_FIRST: case GRUB_HIDBOOT_REPEAT_FIRST:
timeout = 500; timeout = 500;
break; break;
case GRUB_HIDBOOT_REPEAT: case GRUB_HIDBOOT_REPEAT:
timeout = 50; timeout = 50;
break; break;
default:
timeout = 100;
break;
} }
/* Wait until the key is released. */ /* Wait until the key is released. */