Mercurial > hg > octave-kai > gnulib-hg
changeset 11247:baa92ee42663
Remove unnecessary cast.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Sun, 01 Mar 2009 18:01:54 +0100 |
parents | a1564bea27c4 |
children | 04d6b677b5e4 |
files | ChangeLog lib/wait-process.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-03-01 Eric Blake <ebb9@byu.net> + + * lib/wait-process.c (wait_subprocess): Remove unnecessary cast. + 2009-03-01 Bruno Haible <bruno@clisp.org> Avoid a gcc warning.
--- 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 <haible@clisp.cons.org>, 2001. This program is free software: you can redistribute it and/or modify @@ -292,7 +292,7 @@ if (termsigp != NULL) *termsigp = 0; - *(int *) &status = 0; + status = 0; for (;;) { int result = waitpid (child, &status, 0); @@ -308,7 +308,7 @@ { /* Child process nonexistent?! Assume it terminated successfully. */ - *(int *) &status = 0; + status = 0; break; } # endif