Xinqi Bao's Git

n/a for run_command()
[slstatus.git] / slstatus.c
index babcb89..4a092af 100644 (file)
 #undef strlcat
 #undef strlcpy
 
-#include "arg.h"
-#include "strlcat.h"
-#include "strlcpy.h"
-#include "concat.h"
+#include "extern/arg.h"
+#include "extern/strlcat.h"
+#include "extern/strlcpy.h"
+#include "extern/concat.h"
 
 struct arg {
        char *(*func)();
@@ -406,7 +406,7 @@ static char *
 run_command(const char *cmd)
 {
        FILE *fp;
-       char buf[64] = "\0";
+       char buf[64] = "n/a";
 
        fp = popen(cmd, "r");
        if (fp == NULL) {
@@ -599,8 +599,6 @@ usage(void)
        exit(1);
 }
 
-
-
 int
 main(int argc, char *argv[])
 {