all repos — slstatus @ 0fe8e5a961a32e56412a06b4a31a6ba543fd2dfb

my build of slstatus (tools.suckless.org/slstatus/)

suckless coding style -> added back function prototypes argument variable names
Aaron Marcher info@nulltime.net
Sun, 18 Sep 2016 17:26:01 +0200
commit

0fe8e5a961a32e56412a06b4a31a6ba543fd2dfb

parent

d1423010d0832e6da3c11bea63e5f5299a21710b

1 files changed, 16 insertions(+), 16 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -37,34 +37,34 @@ const char *fmt;

const char *args; }; -static char *smprintf(const char *, ...); -static char *battery_perc(const char *); -static char *battery_state(const char *); +static char *smprintf(const char *fmt, ...); +static char *battery_perc(const char *bat); +static char *battery_state(const char *bat); static char *cpu_perc(void); -static char *datetime(const char *); -static char *disk_free(const char *); -static char *disk_perc(const char *); -static char *disk_total(const char *); -static char *disk_used(const char *); +static char *datetime(const char *fmt); +static char *disk_free(const char *mnt); +static char *disk_perc(const char *mnt); +static char *disk_total(const char *mnt); +static char *disk_used(const char *mnt); static char *entropy(void); static char *gid(void); static char *hostname(void); -static char *ip(const char *); +static char *ip(const char *iface); static char *load_avg(void); static char *ram_free(void); static char *ram_perc(void); static char *ram_used(void); static char *ram_total(void); -static char *run_command(const char *); -static char *temp(const char *); +static char *run_command(const char *cmd); +static char *temp(const char *file); static char *uid(void); static char *uptime(void); static char *username(void); -static char *vol_perc(const char *); -static char *wifi_perc(const char *); -static char *wifi_essid(const char *); -static void set_status(const char *); -static void sighandler(const int); +static char *vol_perc(const char *card); +static char *wifi_perc(const char *iface); +static char *wifi_essid(const char *iface); +static void set_status(const char *str); +static void sighandler(const int signo); static void usage(void); char *argv0;