2009-04-13 Pavel Roskin <proski@gnu.org>
* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
This commit is contained in:
parent
c301203905
commit
232a769cb2
2 changed files with 7 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* util/i386/pc/grub-install.in (install_drive): Remove the BSD
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue