aboutsummaryrefslogtreecommitdiff
path: root/runit/runsv.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 10:42:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 10:42:51 +0000
commitbf0a201008671f81c107de72c026b1b84967561d (patch)
treeaf74820b70fa27929fe218c95822c20651b60637 /runit/runsv.c
parent5dd7ef0f37373e397a7160cb431a32ae57f9f7d9 (diff)
downloadbusybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.gz
busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.bz2
busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.zip
style fixes
last xcalloc replaced by xzalloc
Diffstat (limited to 'runit/runsv.c')
-rw-r--r--runit/runsv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index e1b5459fb..9e117fe0a 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -155,7 +155,7 @@ static void update_status(struct svdir *s)
155 if (s->ctrl & C_PAUSE) p = add_str(p, ", paused"); 155 if (s->ctrl & C_PAUSE) p = add_str(p, ", paused");
156 if (s->ctrl & C_TERM) p = add_str(p, ", got TERM"); 156 if (s->ctrl & C_TERM) p = add_str(p, ", got TERM");
157 if (s->state != S_DOWN) 157 if (s->state != S_DOWN)
158 switch(s->want) { 158 switch (s->want) {
159 case W_DOWN: 159 case W_DOWN:
160 p = add_str(p, ", want down"); 160 p = add_str(p, ", want down");
161 break; 161 break;
@@ -329,7 +329,7 @@ static void startservice(struct svdir *s)
329 329
330static int ctrl(struct svdir *s, char c) 330static int ctrl(struct svdir *s, char c)
331{ 331{
332 switch(c) { 332 switch (c) {
333 case 'd': /* down */ 333 case 'd': /* down */
334 s->want = W_DOWN; 334 s->want = W_DOWN;
335 update_status(s); 335 update_status(s);