Remove unnecessary cast.
authorEric Blake <ebb9@byu.net>
Sun, 1 Mar 2009 17:01:54 +0000 (18:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Mar 2009 17:01:54 +0000 (18:01 +0100)
ChangeLog
lib/wait-process.c

index 2387d24..55ece94 100644 (file)
--- 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.
index 7db25e9..45bb457 100644 (file)
@@ -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 @@ 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