aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-verify.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-05-12 06:47:40 +0000
committerWerner Koch <[email protected]>2021-05-12 06:50:04 +0000
commitaa98081356b5f7c9ef2422021e05aed01a7e4d46 (patch)
treee0b9ed66f3791a03697b94452b9a6209cdbc113b /tests/run-verify.c
parentcore: Make sure to stay ABI compatible. (diff)
downloadgpgme-aa98081356b5f7c9ef2422021e05aed01a7e4d46.tar.gz
gpgme-aa98081356b5f7c9ef2422021e05aed01a7e4d46.zip
core: Allow for older compilers.
* tests/run-verify.c (main): Remove C99-only syntax. * tests/run-threaded.c (start_keylistings): Ditto. -- Older gcc's do not grok this and there is no real need for it. run-verify.c:324: error: ‘for’ loop initial declarations are only allowed in C99 mode run-verify.c:324: note: use option -std=c99 or -std=gnu99 to compile your code Reported-by: Lars Hecking
Diffstat (limited to 'tests/run-verify.c')
-rw-r--r--tests/run-verify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-verify.c b/tests/run-verify.c
index e42eb6bf..f131f491 100644
--- a/tests/run-verify.c
+++ b/tests/run-verify.c
@@ -251,6 +251,7 @@ main (int argc, char **argv)
int auto_key_retrieve = 0;
int auto_key_import = 0;
int repeats = 1;
+ int i;
if (argc)
{ argc--; argv++; }
@@ -321,7 +322,7 @@ main (int argc, char **argv)
init_gpgme (protocol);
- for (int i = 0; i < repeats; i++)
+ for (i = 0; i < repeats; i++)
{
gpgme_error_t err;
gpgme_ctx_t ctx;