From ed74b69c2d1df2c8ef854413751a7f3de724b457 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Thu, 4 Jul 2013 03:24:58 +0000 Subject: [PATCH] Remove unnecessary cast to pid_t. --- usr.bin/mail/popen.c | 2 +- usr.bin/make/job.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/mail/popen.c b/usr.bin/mail/popen.c index c4d17461e48d..60a09360c9d2 100644 --- a/usr.bin/mail/popen.c +++ b/usr.bin/mail/popen.c @@ -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); diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index bc1d6a076494..6fee0eca78c3 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -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) ; }