projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f8476
)
keymap: Variable "layout" should be const
author
planet36
<planet36@users.noreply.github.com>
Fri, 5 Mar 2021 19:35:24 +0000
(14:35 -0500)
committer
drkhsh
<me@drkhsh.at>
Mon, 19 Dec 2022 01:44:21 +0000
(
02:44
+0100)
Signed-off-by: drkhsh <me@drkhsh.at>
components/keymap.c
patch
|
blob
|
history
diff --git
a/components/keymap.c
b/components/keymap.c
index 47404311c397390622b63f1abdc4d269049869d2..f8a2a4763972948bbce9c2a428b5a4e6e5496308 100644
(file)
--- 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);