stop using non-standard macro, use WEXITSTATUS instead

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-06-07 16:02:00 +02:00
parent d6b05eb9c2
commit 8f24f9812d
5 changed files with 7 additions and 11 deletions

View File

@@ -337,7 +337,7 @@ static int checkscript(void)
bb_perror_msg(WARN"cannot %s child %s/check", "wait for", *service);
return 0;
}
return !wait_exitcode(w);
return WEXITSTATUS(w) == 0;
}
static int check(const char *a)