[git commit] popen.c: get rid of a shadow warning
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jun 15 12:00:32 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=9b0f7d99899bf96510a4c3ea84218b7efb50f696
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
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 dfbfd96..40a6dda 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;
More information about the uClibc-cvs
mailing list