[exim-dev] Deprecated function in exim_monitor/em_main.c

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Richard Clayton
Fecha:  
A: exim-dev
Asunto: [exim-dev] Deprecated function in exim_monitor/em_main.c

XKeycodeToKeysym is deprecated

../exim_monitor/em_main.c:576:9: warning: 'XKeycodeToKeysym' is
deprecated [-Wdeprecated-declarations]
    if (XKeycodeToKeysym(display, m->modifiermap [i*m->max_keypermod +
           j], 0)


the fix is to use

    if (XkbKeycodeToKeysym(display, m->modifiermap [i*m->max_keypermod +
           j], 0, 0)


which also requires adding #include <X11/XKBlib.h>
to em_hdr.h

if you don't think XKBlib.h is universally available then there's magic
to be done with XGetKeyboardMapping, but that looks much more messy.

-- 
richard                                                   Richard Clayton


Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety. Benjamin Franklin 11 Nov 1755