* savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
authorJim Meyering <jim@meyering.net>
Mon, 18 Sep 2006 06:47:32 +0000 (06:47 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 18 Sep 2006 06:47:32 +0000 (06:47 +0000)
lib/ChangeLog
lib/savewd.c

index 12f8fbe..983ffab 100644 (file)
@@ -1,3 +1,7 @@
+2006-09-18  Jim Meyering  <jim@meyering.net>
+
+       * savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
+
 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
 
        * dirchownmod.c: Don't include fcntl.h; no longer needed.
index c9af955..7e99237 100644 (file)
@@ -201,13 +201,13 @@ savewd_restore (struct savewd *wd, int status)
          _exit (status);
        if (0 < child)
          {
-           int status;
-           while (waitpid (child, &status, 0) < 0)
+           int child_status;
+           while (waitpid (child, &child_status, 0) < 0)
              assert (errno == EINTR);
            wd->val.child = -1;
-           if (! WIFEXITED (status))
-             raise (WTERMSIG (status));
-           return WEXITSTATUS (status);
+           if (! WIFEXITED (child_status))
+             raise (WTERMSIG (child_status));
+           return WEXITSTATUS (child_status);
          }
       }
       break;