1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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 7ed15f7548
commit 6228bb0012
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

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;
}