From e5a6a39d9b93082ec1b68a84f460370c1bce6e1e Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Sun, 1 Mar 2009 18:01:54 +0100 Subject: [PATCH] Remove unnecessary cast. --- ChangeLog | 4 ++++ lib/wait-process.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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 -- 2.11.0