static char *vol_perc(const char *card);
static char *wifi_perc(const char *iface);
static char *wifi_essid(const char *iface);
- static char *kernel_release(void);
-static void set_status(const char *str);
static void sighandler(const int signo);
-static void usage(void);
+static void usage(int);
char *argv0;
char concat[];
freeifaddrs(ifaddr);
- return smprintf(UNKNOWN_STR);
+ return smprintf("%s", UNKNOWN_STR);
}
+ static char *
+ kernel_release(void)
+ {
+ struct utsname udata;
+
+ if (uname(&udata) < 0) {
+ return smprintf(UNKNOWN_STR);
+ }
+
+ return smprintf("%s", udata.release);
+ }
+
static char *
load_avg(void)
{
return smprintf("%s", (char *)wreq.u.essid.pointer);
}
- static char *
- kernel_release(void)
-static void
-set_status(const char *str)
--{
- struct utsname udata;
- if (uname(&udata) < 0)
- return smprintf("%s", UNKNOWN_STR);
-
- return smprintf("%s", udata.release);
- XStoreName(dpy, DefaultRootWindow(dpy), str);
- XSync(dpy, False);
--}
--
static void
sighandler(const int signo)
{