diff options
author | kevlo <kevlo@FreeBSD.org> | 2013-07-04 03:24:58 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2013-07-04 03:24:58 +0000 |
commit | 67f40d0cd39e244cabb915e7828711647be1f159 (patch) | |
tree | a31b0bdd56e9459d9c3646ace0a105fa2d4d307c /usr.bin | |
parent | 203bc3246b7e51256792c2b4884fb0c5d63cf205 (diff) | |
download | FreeBSD-src-67f40d0cd39e244cabb915e7828711647be1f159.zip FreeBSD-src-67f40d0cd39e244cabb915e7828711647be1f159.tar.gz |
Remove unnecessary cast to pid_t.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mail/popen.c | 2 | ||||
-rw-r--r-- | 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 c4d1746..60a0936 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 bc1d6a0..6fee0ec 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) ; } |