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:04:27 +0000
commitf119444e644280288ff05f46b7147481f594490f (patch)
tree0302070f555d650705f134615400331cf21e4b36
parentgpg: Prepare Kyber encryption code for more variants. (diff)
downloadgnupg-f119444e644280288ff05f46b7147481f594490f.tar.gz
gnupg-f119444e644280288ff05f46b7147481f594490f.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 c77fd7c23..e278069bf 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;
}