From d44dca8da472eac29ab1b566838174e5203fdbc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andris=20Pav=C4=93nis?= Date: Sat, 19 Aug 2023 11:01:18 +0300 Subject: [PATCH] ada: Fix syntax error gcc/ada/ * expect.c (__gnat_waitpid): fix syntax errors --- gcc/ada/expect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.47.2