static char *wifi_perc(const char *iface);
static char *wifi_essid(const char *iface);
static void sighandler(const int signo);
-static void usage(int);
+static void usage(const int eval);
char *argv0;
char concat[];
}
fgets(buf, sizeof(buf), fp);
pclose(fp);
- buf[strlen(buf)] = '\0';
+ buf[sizeof(buf)] = '\0';
if ((nlptr = strstr(buf, "\n")) != NULL) {
nlptr[0] = '\0';
}
static void
-usage(int eval)
+usage(const int eval)
{
fprintf(stderr, "usage: %s [-d] [-o] [-v] [-h]\n", argv0);
exit(eval);