summary refs log tree commit diff
path: root/src/runsvstat.c
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-09-13 13:25:27 +0000
committerGerrit Pape <pape@smarden.org>2007-09-13 13:38:16 +0000
commitc826ec66accb8090816b11cf8168bb46c4c6358e (patch)
tree271fc000ee6aaf0fb0ef0d6cdfcf6841ed25af06 /src/runsvstat.c
parent6ea9716f1fc13a976aad8af0ed3138c9bc6333d5 (diff)
downloadrunit-c826ec66accb8090816b11cf8168bb46c4c6358e.tar.gz
runit-c826ec66accb8090816b11cf8168bb46c4c6358e.tar.xz
runit-c826ec66accb8090816b11cf8168bb46c4c6358e.zip
s/\t/ /g
Diffstat (limited to 'src/runsvstat.c')
-rw-r--r--src/runsvstat.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/runsvstat.c b/src/runsvstat.c
index 7b2607a..c17bbd3 100644
--- a/src/runsvstat.c
+++ b/src/runsvstat.c
@@ -139,21 +139,21 @@ int main(int argc, char **argv) {
     }
     if (show_status(*dir) == 1) {
       if (showlog) {
-	if (stat("log", &s) == -1) {
-	  if (errno != error_noent)
-	    warn("unable to stat()", "./log");
-	}
-	else {
-	  if (! S_ISDIR(s.st_mode))
-	    warnx("./log", "not a directory.");
-	  else {
-	    if (chdir("log") == -1) {
-	      warn(*dir, "unable to change directory");
-	      continue;
-	    }
-	    show_status("\n  log");
-	  }
-	}
+        if (stat("log", &s) == -1) {
+          if (errno != error_noent)
+            warn("unable to stat()", "./log");
+        }
+        else {
+          if (! S_ISDIR(s.st_mode))
+            warnx("./log", "not a directory.");
+          else {
+            if (chdir("log") == -1) {
+              warn(*dir, "unable to change directory");
+              continue;
+            }
+            show_status("\n  log");
+          }
+        }
       }
       buffer_puts(buffer_1, "\n"); buffer_flush(buffer_1);
     }