tests: Avoid new C23 keyword true.

* tests/asschk.c (eval_boolean): s/true/tru/
--

GnuPG-bug-is: 7093
This commit is contained in:
Werner Koch 2024-04-22 08:04:27 +02:00
parent 2a0a706eb2
commit 7728a179e0
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 4 additions and 4 deletions

View File

@ -656,13 +656,13 @@ expand_line (char *buffer)
static int static int
eval_boolean (const char *cond) eval_boolean (const char *cond)
{ {
int true = 1; int tru = 1;
for ( ; *cond == '!'; cond++) for ( ; *cond == '!'; cond++)
true = !true; tru = !tru;
if (!*cond || (*cond == '0' && !cond[1])) if (!*cond || (*cond == '0' && !cond[1]))
return !true; return !tru;
return true; return tru;
} }