From f2ba6197f403c2104cbd91bdf48803a32aaf1579 Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Thu, 24 Mar 2011 00:13:50 +0100
Subject: [PATCH 173/396] popen.c: get rid of a shadow warning

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 libc/stdio/popen.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libc/stdio/popen.c b/libc/stdio/popen.c
index d5c60cf..5aa58db 100644
--- a/libc/stdio/popen.c
+++ b/libc/stdio/popen.c
@@ -138,7 +138,7 @@ FILE *popen(const char *command, const char *modes)
 int pclose(FILE *stream)
 {
 	struct popen_list_item *p;
-	int stat;
+	int status;
 	pid_t pid;
 
 	/* First, find the list entry corresponding to stream and remove it
@@ -173,8 +173,8 @@ int pclose(FILE *stream)
 		/* SUSv3 specificly requires that pclose not return before the child
 		 * terminates, in order to disallow pclose from returning on EINTR. */
 		do {
-			if (waitpid(pid, &stat, 0) >= 0) {
-				return stat;
+			if (waitpid(pid, &status, 0) >= 0) {
+				return status;
 			}
 			if (errno != EINTR) {
 				break;
-- 
1.7.0.4

