| Date: Fri, 5 Mar 2021 14:35:24 -0500
keymap: Variable "layout" should be const
Signed-off-by: drkhsh
Diffstat:
M components/keymap.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- |
| @@ -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); |