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
2a0a706eb2
commit
7728a179e0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user