aboutsummaryrefslogtreecommitdiff
path: root/runit/runsv.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 22:39:57 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 22:39:57 +0000
commit3854c5ddf4eb267e4e53796eaa1051421dcb4e08 (patch)
tree7110eecec665bc64fefcdedaa29eb2e2fdf2df41 /runit/runsv.c
parent70e8f49f71b824bbc7c5ec825eb33108134d1ee5 (diff)
downloadbusybox-w32-3854c5ddf4eb267e4e53796eaa1051421dcb4e08.tar.gz
busybox-w32-3854c5ddf4eb267e4e53796eaa1051421dcb4e08.tar.bz2
busybox-w32-3854c5ddf4eb267e4e53796eaa1051421dcb4e08.zip
runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.
*: s/int/pid_t where appropriate
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 bd0f3dcc2..56244d03f 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -247,7 +247,7 @@ static void update_status(struct svdir *s)
247 247
248static unsigned custom(struct svdir *s, char c) 248static unsigned custom(struct svdir *s, char c)
249{ 249{
250 int pid; 250 pid_t pid;
251 int w; 251 int w;
252 char a[10]; 252 char a[10];
253 struct stat st; 253 struct stat st;
@@ -584,7 +584,7 @@ int runsv_main(int argc UNUSED_PARAM, char **argv)
584 continue; 584 continue;
585 585
586 for (;;) { 586 for (;;) {
587 int child; 587 pid_t child;
588 int wstat; 588 int wstat;
589 589
590 child = wait_any_nohang(&wstat); 590 child = wait_any_nohang(&wstat);