diff options
Diffstat (limited to 'runit/sv.c')
-rw-r--r-- | runit/sv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runit/sv.c b/runit/sv.c index 819f31419..9471d09a8 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -75,7 +75,7 @@ static int svstatus_get(void) | |||
75 | } | 75 | } |
76 | r = read(fd, svstatus, 20); | 76 | r = read(fd, svstatus, 20); |
77 | close(fd); | 77 | close(fd); |
78 | switch(r) { | 78 | switch (r) { |
79 | case 20: break; | 79 | case 20: break; |
80 | case -1: warn_cannot("read supervise/status"); return -1; | 80 | case -1: warn_cannot("read supervise/status"); return -1; |
81 | default: warnx_cannot("read supervise/status: bad format"); return -1; | 81 | default: warnx_cannot("read supervise/status: bad format"); return -1; |
@@ -124,7 +124,7 @@ static unsigned svstatus_print(char *m) | |||
124 | static int status(char *unused) | 124 | static int status(char *unused) |
125 | { | 125 | { |
126 | r = svstatus_get(); | 126 | r = svstatus_get(); |
127 | switch(r) { case -1: case 0: return 0; } | 127 | switch (r) { case -1: case 0: return 0; } |
128 | r = svstatus_print(*service); | 128 | r = svstatus_print(*service); |
129 | if (chdir("log") == -1) { | 129 | if (chdir("log") == -1) { |
130 | if (errno != ENOENT) { | 130 | if (errno != ENOENT) { |