Remove unnecessary cast to pid_t.

This commit is contained in:
kevlo 2013-07-04 03:24:58 +00:00
parent 203bc3246b
commit 67f40d0cd3
2 changed files with 3 additions and 3 deletions

View File

@ -316,7 +316,7 @@ sigchild(int signo __unused)
int status;
struct child *cp;
while ((pid = waitpid((pid_t)-1, &status, WNOHANG)) > 0) {
while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
cp = findchild(pid);
if (cp->free)
delchild(cp);

View File

@ -2128,7 +2128,7 @@ Job_CatchChildren(Boolean block)
}
for (;;) {
pid = waitpid((pid_t)-1, &status,
pid = waitpid(-1, &status,
(block ? 0 : WNOHANG) | WUNTRACED);
if (pid <= 0)
break;
@ -2628,7 +2628,7 @@ Job_AbortAll(void)
/*
* Catch as many children as want to report in at first, then give up
*/
while (waitpid((pid_t)-1, &foo, WNOHANG) > 0)
while (waitpid(-1, &foo, WNOHANG) > 0)
;
}