From: Andris Pavēnis Date: Sat, 19 Aug 2023 08:01:18 +0000 (+0300) Subject: ada: Fix syntax error X-Git-Tag: basepoints/gcc-15~4807 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d44dca8da472eac29ab1b566838174e5203fdbc1;p=thirdparty%2Fgcc.git ada: 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 e6899632bc90..7333c11d9542 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); }