Revision: 2095
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2095
Author: proski
Date: 2009-04-13 13:00:59 +0000 (Mon, 13 Apr 2009)
Log Message:
-----------
2009-04-13 Pavel Roskin <[email protected]>
* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/term/usb_keyboard.c
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-04-13 11:45:20 UTC (rev 2094)
+++ trunk/grub2/ChangeLog 2009-04-13 13:00:59 UTC (rev 2095)
@@ -1,3 +1,7 @@
+2009-04-13 Pavel Roskin <[email protected]>
+
+ * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
+
2009-04-13 Felix Zielcke <[email protected]>
* util/i386/pc/grub-install.in (install_drive): Remove the BSD
Modified: trunk/grub2/term/usb_keyboard.c
===================================================================
--- trunk/grub2/term/usb_keyboard.c 2009-04-13 11:45:20 UTC (rev 2094)
+++ trunk/grub2/term/usb_keyboard.c 2009-04-13 13:00:59 UTC (rev 2095)
@@ -173,7 +173,6 @@
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 @@
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. */