commit 64c48aa99656e06d5728bf5837da3bbc50ae4cc5 Author: Andris Pavēnis Date: Sat Aug 19 10:40:22 2023 +0300 Fix syntax error gcc/ada/expect.c(__gnat_waitpid): fix syntax errors diff --git a/gcc/ada/expect.c b/gcc/ada/expect.c index e6899632bc9..7333c11d954 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); }