From: Eric Blake Date: Sun, 1 Mar 2009 17:01:54 +0000 (+0100) Subject: Remove unnecessary cast. X-Git-Tag: v0.1~6239 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=e5a6a39d9b93082ec1b68a84f460370c1bce6e1e;p=gnulib.git Remove unnecessary cast. --- diff --git a/ChangeLog b/ChangeLog index 2387d2436..55ece94b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-03-01 Eric Blake + + * lib/wait-process.c (wait_subprocess): Remove unnecessary cast. + 2009-03-01 Bruno Haible Avoid a gcc warning. diff --git a/lib/wait-process.c b/lib/wait-process.c index 7db25e995..45bb4574f 100644 --- a/lib/wait-process.c +++ b/lib/wait-process.c @@ -1,5 +1,5 @@ /* Waiting for a subprocess to finish. - Copyright (C) 2001-2003, 2005-2008 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -292,7 +292,7 @@ wait_subprocess (pid_t child, const char *progname, if (termsigp != NULL) *termsigp = 0; - *(int *) &status = 0; + status = 0; for (;;) { int result = waitpid (child, &status, 0); @@ -308,7 +308,7 @@ wait_subprocess (pid_t child, const char *progname, { /* Child process nonexistent?! Assume it terminated successfully. */ - *(int *) &status = 0; + status = 0; break; } # endif