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 ba3c873934
commit f119444e64
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
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;
}