aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-04-22 06:04:27 +0000
committerWerner Koch <[email protected]>2024-04-22 06:05:45 +0000
commit6228bb0012572d4cd44cd1a1237cf236607c8c04 (patch)
treed0363dba77c09eeb5f757508511dd8b52283967d
parentPost release updates (diff)
downloadgnupg-6228bb0012572d4cd44cd1a1237cf236607c8c04.tar.gz
gnupg-6228bb0012572d4cd44cd1a1237cf236607c8c04.zip
tests: Avoid new C23 keyword true.
* tests/asschk.c (eval_boolean): s/true/tru/ -- GnuPG-bug-is: 7093
-rw-r--r--tests/asschk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/asschk.c b/tests/asschk.c
index 65828e5b2..697c5d958 100644
--- a/tests/asschk.c
+++ b/tests/asschk.c
@@ -656,13 +656,13 @@ expand_line (char *buffer)
static int
eval_boolean (const char *cond)
{
- int true = 1;
+ int tru = 1;
for ( ; *cond == '!'; cond++)
- true = !true;
+ tru = !tru;
if (!*cond || (*cond == '0' && !cond[1]))
- return !true;
- return true;
+ return !tru;
+ return tru;
}