From owner-svn-src-all@FreeBSD.ORG Thu Jul 4 03:24:59 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 221D0A55; Thu, 4 Jul 2013 03:24:59 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 140F21913; Thu, 4 Jul 2013 03:24:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r643OwcV033468; Thu, 4 Jul 2013 03:24:58 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r643OwWX033466; Thu, 4 Jul 2013 03:24:58 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201307040324.r643OwWX033466@svn.freebsd.org> From: Kevin Lo Date: Thu, 4 Jul 2013 03:24:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252679 - in head/usr.bin: mail make X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 03:24:59 -0000 Author: kevlo Date: Thu Jul 4 03:24:58 2013 New Revision: 252679 URL: http://svnweb.freebsd.org/changeset/base/252679 Log: Remove unnecessary cast to pid_t. Modified: head/usr.bin/mail/popen.c head/usr.bin/make/job.c Modified: head/usr.bin/mail/popen.c ============================================================================== --- head/usr.bin/mail/popen.c Thu Jul 4 01:48:55 2013 (r252678) +++ head/usr.bin/mail/popen.c Thu Jul 4 03:24:58 2013 (r252679) @@ -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); Modified: head/usr.bin/make/job.c ============================================================================== --- head/usr.bin/make/job.c Thu Jul 4 01:48:55 2013 (r252678) +++ head/usr.bin/make/job.c Thu Jul 4 03:24:58 2013 (r252679) @@ -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) ; }