mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
2009-04-13 Pavel Roskin <proski@gnu.org>
* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
This commit is contained in:
1 parent
c301203905
commit
232a769cb2
2 files changed
+7
-4
No files matched your search
+3
-4
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user