summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-24 00:13:50 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:32 +0200
commit9b0f7d99899bf96510a4c3ea84218b7efb50f696 (patch)
tree632a17e0714f7d85c0d343fafd3c636e8724ff1a /libc
parent87936cd0130414cccc8a7427498dd5491ec2664f (diff)
popen.c: get rid of a shadow warning
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/popen.c6
1 files changed, 3 insertions, 3 deletions
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;