keymap: Variable "layout" should be const
Signed-off-by: drkhsh <me@drkhsh.at>
This commit is contained in:
parent
89f8476110
commit
c75cb9ad7a
|
@ -50,7 +50,8 @@ keymap(const char *unused)
|
|||
Display *dpy;
|
||||
XkbDescRec *desc;
|
||||
XkbStateRec state;
|
||||
char *symbols, *layout;
|
||||
char *symbols;
|
||||
const char *layout;
|
||||
|
||||
layout = NULL;
|
||||
|
||||
|
@ -74,7 +75,7 @@ keymap(const char *unused)
|
|||
warn("XGetAtomName: Failed to get atom name");
|
||||
goto end;
|
||||
}
|
||||
layout = (char *)bprintf("%s", get_layout(symbols, state.group));
|
||||
layout = bprintf("%s", get_layout(symbols, state.group));
|
||||
XFree(symbols);
|
||||
end:
|
||||
XkbFreeKeyboard(desc, XkbSymbolsNameMask, 1);
|
||||
|
|
Loading…
Reference in New Issue