VirtualBox

Ignore:
Timestamp:
Oct 16, 2008 11:43:16 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38022
Message:

two warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/X11/keyboard-new.c

    r12499 r13335  
    144144 */
    145145static int
    146 X11DRV_KEYBOARD_DetectLayout (Display *display, int min_keycode,
    147                               int max_keycode)
     146X11DRV_KEYBOARD_DetectLayout (Display *display, KeyCode min_keycode,
     147                              KeyCode max_keycode)
    148148{
    149149  /** Counter variable for iterating through the keyboard layout tables. */
     
    159159  char ckey[256][2];
    160160  /** Counter variable representing a keycode */
    161   unsigned keyc;
     161  KeyCode keyc;
    162162
    163163  /* Fill in our keycode to keysym mapping table. */
     
    309309    XDisplayKeycodes(display, &min_keycode, &max_keycode);
    310310
     311    /* according to the space this function is guaranteed to never return
     312     * values for min_keycode < 8 and values for max_keycode > 255 */
     313    if (min_keycode < 0)
     314        min_keycode = 0;
     315    if (max_keycode > 255)
     316        max_keycode = 255;
     317
    311318    /* Detect the keyboard layout */
    312319    kbd_layout = X11DRV_KEYBOARD_DetectLayout(display, min_keycode,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette