aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndris Pavēnis <andris.pavenis@iki.fi>2023-08-19 11:01:18 +0300
committerMarc Poulhiès <poulhies@adacore.com>2023-11-10 17:07:50 +0100
commitd44dca8da472eac29ab1b566838174e5203fdbc1 (patch)
tree49502fff6edbbc30faf3793ad019829a070e0648 /gcc
parent0410b754e56c0868203c2412e0585ba070ea938d (diff)
downloadgcc-d44dca8da472eac29ab1b566838174e5203fdbc1.zip
gcc-d44dca8da472eac29ab1b566838174e5203fdbc1.tar.gz
gcc-d44dca8da472eac29ab1b566838174e5203fdbc1.tar.bz2
ada: Fix syntax error
gcc/ada/ * expect.c (__gnat_waitpid): fix syntax errors
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/expect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c
index e689963..7333c11 100644
--- a/gcc/ada/expect.c
+++ b/gcc/ada/expect.c
@@ -346,11 +346,11 @@ __gnat_waitpid (int pid)
return -1;
}
- if WIFEXITED (status) {
+ if (WIFEXITED (status)) {
status = WEXITSTATUS (status);
- } else if WIFSIGNALED (status) {
+ } else if (WIFSIGNALED (status)) {
status = WTERMSIG (status);
- } else if WIFSTOPPED (status) {
+ } else if (WIFSTOPPED (status)) {
status = WSTOPSIG (status);
}