summaryrefslogtreecommitdiff
path: root/components/keymap.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-10-27 02:16:05 +0600
committerRafael Marçalo <raroma09@gmail.com>2022-10-27 12:59:51 +0100
commit24d0ad53fe9ea7e7a9ecb78a178d040d71f2edb0 (patch)
tree770d6bf46d2e1e9821ec528e1826b9753b2dee86 /components/keymap.c
parentbae1ab9e614ab1497ebe300866244cd8ab6fdbca (diff)
do not rely on obsolete feature
function prototype with unspecified argument is obsolete since c99. additionally some of these function which don't take any argument were being called with a `const char *` arg, which is UB. fix both these issues by declararing ALL the components to accept a `const char *`, and name the arg "unused" if it's meant to be ignored.
Diffstat (limited to 'components/keymap.c')
-rw-r--r--components/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/keymap.c b/components/keymap.c
index 87036db..2a99474 100644
--- a/components/keymap.c
+++ b/components/keymap.c
@@ -47,7 +47,7 @@ get_layout(char *syms, int grp_num)
}
const char *
-keymap(void)
+keymap(const char *unused)
{
Display *dpy;
XkbDescRec *desc;