[git commit future 1/1] popen.c: get rid of a shadow warning

Khem Raj raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=19ae0c0a4bbe2aea7068e3d8794c5d897c835725
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at 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.3.4



More information about the uClibc-cvs mailing list