aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/expect.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/expect.c')
-rw-r--r--gcc/ada/expect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c
index 349af3f..b8753ab 100644
--- a/gcc/ada/expect.c
+++ b/gcc/ada/expect.c
@@ -262,7 +262,7 @@ __gnat_expect_poll (int *fd,
if ((status & 1) != 1)
{
ready = -1;
- dead_process = i + 1;
+ *dead_process = i + 1;
return ready;
}
}
@@ -447,7 +447,7 @@ __gnat_expect_poll (int *fd,
if (ei.request == TIOCCLOSE)
{
ioctl (fd[i], TIOCREQSET, &ei);
- dead_process = i + 1;
+ *dead_process = i + 1;
return -1;
}