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:
parent
7ed15f7548
commit
6228bb0012
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user