diff options
author | Werner Koch <[email protected]> | 2024-04-22 06:04:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-04-22 06:05:28 +0000 |
commit | 7728a179e0b7b788fb525e4de794b92360f70e66 (patch) | |
tree | 7ba50e0768efbe1a93a05b55235901f868fcfc90 | |
parent | gpg: Mark disabled keys and add show-ownertrust list option. (diff) | |
download | gnupg-7728a179e0b7b788fb525e4de794b92360f70e66.tar.gz gnupg-7728a179e0b7b788fb525e4de794b92360f70e66.zip |
tests: Avoid new C23 keyword true.
* tests/asschk.c (eval_boolean): s/true/tru/
--
GnuPG-bug-is: 7093
-rw-r--r-- | tests/asschk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/asschk.c b/tests/asschk.c index c77fd7c23..e278069bf 100644 --- a/tests/asschk.c +++ b/tests/asschk.c @@ -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; } |