summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorplanet36 <planet36@users.noreply.github.com>2021-03-05 14:35:24 -0500
committerdrkhsh <me@drkhsh.at>2022-12-19 02:44:21 +0100
commitc75cb9ad7af55d16b864b1059fbc1aaa9d9874de (patch)
tree91a8dde21c219cbb0cd9461a64be5c83c94d5426 /components
parent89f8476110c7bdfb70528da79be328ba0f6490be (diff)
downloadslstatus-c75cb9ad7af55d16b864b1059fbc1aaa9d9874de.tar.gz
keymap: Variable "layout" should be const
Signed-off-by: drkhsh <me@drkhsh.at>
Diffstat (limited to 'components')
-rw-r--r--components/keymap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/keymap.c b/components/keymap.c
index 4740431..f8a2a47 100644
--- a/components/keymap.c
+++ b/components/keymap.c
@@ -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);