Fix some compilation warnings

Fixed the prototypes of MyEnhancedXkbTranslateKeyCode() and
translate_keysym() to take a gint* because those functions treat
these arguments as an int, so we get around the need to cast.
This commit is contained in:
Javier Jardón 2009-10-29 03:39:35 +01:00
parent 3388a1b146
commit 3dbfc08a7a

View File

@ -1198,8 +1198,8 @@ MyEnhancedXkbTranslateKeyCode(register XkbDescPtr xkb,
register unsigned int mods, register unsigned int mods,
unsigned int * mods_rtrn, unsigned int * mods_rtrn,
KeySym * keysym_rtrn, KeySym * keysym_rtrn,
unsigned int * group_rtrn, int * group_rtrn,
unsigned int * level_rtrn) int * level_rtrn)
{ {
XkbKeyTypeRec *type; XkbKeyTypeRec *type;
int col,nKeyGroups; int col,nKeyGroups;
@ -1324,8 +1324,8 @@ translate_keysym (GdkKeymapX11 *keymap_x11,
guint hardware_keycode, guint hardware_keycode,
gint group, gint group,
GdkModifierType state, GdkModifierType state,
guint *effective_group, gint *effective_group,
guint *effective_level) gint *effective_level)
{ {
const KeySym *map = get_keymap (keymap_x11); const KeySym *map = get_keymap (keymap_x11);
const KeySym *syms = map + (hardware_keycode - keymap_x11->min_keycode) * keymap_x11->keysyms_per_keycode; const KeySym *syms = map + (hardware_keycode - keymap_x11->min_keycode) * keymap_x11->keysyms_per_keycode;