From 9b0f7d99899bf96510a4c3ea84218b7efb50f696 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 24 Mar 2011 00:13:50 +0100 Subject: popen.c: get rid of a shadow warning Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/stdio/popen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/stdio') diff --git a/libc/stdio/popen.c b/libc/stdio/popen.c index dfbfd9611..40a6ddac1 100644 --- a/libc/stdio/popen.c +++ b/libc/stdio/popen.c @@ -129,7 +129,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 @@ -164,8 +164,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; -- cgit v1.2.3