mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-27 05:45:42 +00:00
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;
|
Display *dpy;
|
||||||
XkbDescRec *desc;
|
XkbDescRec *desc;
|
||||||
XkbStateRec state;
|
XkbStateRec state;
|
||||||
char *symbols, *layout;
|
char *symbols;
|
||||||
|
const char *layout;
|
||||||
|
|
||||||
layout = NULL;
|
layout = NULL;
|
||||||
|
|
||||||
@ -74,7 +75,7 @@ keymap(const char *unused)
|
|||||||
warn("XGetAtomName: Failed to get atom name");
|
warn("XGetAtomName: Failed to get atom name");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
layout = (char *)bprintf("%s", get_layout(symbols, state.group));
|
layout = bprintf("%s", get_layout(symbols, state.group));
|
||||||
XFree(symbols);
|
XFree(symbols);
|
||||||
end:
|
end:
|
||||||
XkbFreeKeyboard(desc, XkbSymbolsNameMask, 1);
|
XkbFreeKeyboard(desc, XkbSymbolsNameMask, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user