// vim:ts=8:expandtab
#include "i3status.h"
-#include <err.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
const char *walk;
if (getloadavg(loadavg, 3) == -1)
- errx(-1, "getloadavg() failed\n");
+ goto error;
for (walk = format; *walk != '\0'; walk++) {
if (*walk != '%') {
walk += strlen("15min");
}
}
+ return;
+error:
#endif
+ (void)fputs("Cannot read load\n", stderr);
}