]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-04-13 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Mon, 13 Apr 2009 13:00:59 +0000 (13:00 +0000)
committerproski <proski@localhost>
Mon, 13 Apr 2009 13:00:59 +0000 (13:00 +0000)
* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.

ChangeLog
term/usb_keyboard.c

index 40b18b27579bb4f6a65ccbfd33505bb39f72e113..dd519ce8326bf96a87462a0e962a7d29d0477ba6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 07f7d08b46beacc46e5cd7ac9df546b7a514ee23..d30e6fc7fb2bd965362952a2d3e86bb65730e639 100644 (file)
@@ -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.  */