summaryrefslogtreecommitdiffstats
path: root/gnu/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libdialog/raw_popen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/raw_popen.c b/gnu/lib/libdialog/raw_popen.c
index add71f1..d343abe 100644
--- a/gnu/lib/libdialog/raw_popen.c
+++ b/gnu/lib/libdialog/raw_popen.c
@@ -131,8 +131,7 @@ int
raw_pclose(FILE *iop)
{
register struct pid *cur, *last;
- int omask;
- union wait pstat;
+ int omask, pstat;
pid_t pid;
(void)fclose(iop);
@@ -158,5 +157,5 @@ raw_pclose(FILE *iop)
last->next = cur->next;
free(cur);
- return (pid == -1 ? -1 : pstat.w_status);
+ return (pid == -1 ? -1 : pstat);
}
OpenPOWER on IntegriCloud