re PR ada/92575 (couple of suspicious assignments in expect.c)
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 25 Nov 2019 10:29:51 +0000 (10:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 25 Nov 2019 10:29:51 +0000 (10:29 +0000)
PR ada/92575
* expect.c (__gnat_expect_poll [VMS, HPUX]): Fix typo.

From-SVN: r278671

gcc/ada/ChangeLog
gcc/ada/expect.c

index c69910c97cc4a1ab135fc553b6f44a2fde2d1f22..a5b2a7c2b2ad43e3494b0b7ad2568d40fa4a0c96 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-25  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR ada/92575
+       * expect.c (__gnat_expect_poll [VMS, HPUX]): Fix typo.
+
 2019-11-06  Eric Botcazou  <ebotcazou@adacore.com>
            Alexandre Oliva  <oliva@adacore.com>
 
index 349af3f789df64293050dc8660e0414abe9b69d0..b8753ab0880761d282c63c3c055f75c5165bc6e9 100644 (file)
@@ -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;
                      }