diff options
author | planet36 <planet36@users.noreply.github.com> | 2021-03-05 14:35:24 -0500 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2023-01-03 15:02:01 +0000 |
commit | fbb415f12ddb87453a77f5967aea2c806c1b6d96 (patch) | |
tree | 301af020fbe76aa67dd68c4395d9bd296967f567 /components | |
parent | 93436bf3fcc5224a1cca71a8616e10c0a14c8528 (diff) |
keymap: Variable "layout" should be const
Signed-off-by: drkhsh <me@drkhsh.at>
Diffstat (limited to 'components')
-rw-r--r-- | components/keymap.c | 5 |
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); |