do not rely on obsolete feature
authorNRK <nrk@disroot.org>
Wed, 26 Oct 2022 20:16:05 +0000 (02:16 +0600)
committerdrkhsh <me@drkhsh.at>
Wed, 26 Oct 2022 21:32:43 +0000 (23:32 +0200)
commit0c2b3e5b5c499b1de566fd4bef49c5e6b5254d1a
tree770d6bf46d2e1e9821ec528e1826b9753b2dee86
parent28ef0b242c32e8ae8b4df2b4b380e30bf581130f
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.
13 files changed:
components/cpu.c
components/entropy.c
components/hostname.c
components/kernel_release.c
components/keymap.c
components/load_avg.c
components/ram.c
components/swap.c
components/uptime.c
components/user.c
config.mk
slstatus.c
slstatus.h