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:28 +0000
commit7728a179e0b7b788fb525e4de794b92360f70e66 (patch)
tree7ba50e0768efbe1a93a05b55235901f868fcfc90
parentgpg: Mark disabled keys and add show-ownertrust list option. (diff)
downloadgnupg-7728a179e0b7b788fb525e4de794b92360f70e66.tar.gz
gnupg-7728a179e0b7b788fb525e4de794b92360f70e66.zip
tests: Avoid new C23 keyword true.
* tests/asschk.c (eval_boolean): s/true/tru/ -- GnuPG-bug-is: 7093
Diffstat (limited to '')
-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;
}