diff options
author | Aaron Marcher <info@nulltime.net> | 2016-09-18 17:26:01 +0200 |
---|---|---|
committer | Aaron Marcher (drkhsh) <info@nulltime.net> | 2016-09-18 17:26:01 +0200 |
commit | 0fe8e5a961a32e56412a06b4a31a6ba543fd2dfb (patch) | |
tree | e2bf76a1d00966ba96eb0153f394a5666c6f614a /slstatus.c | |
parent | d1423010d0832e6da3c11bea63e5f5299a21710b (diff) |
suckless coding style -> added back function prototypes argument variable names
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -37,34 +37,34 @@ struct arg { 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; |