aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/run-threaded.c3
-rw-r--r--tests/run-verify.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/run-threaded.c b/tests/run-threaded.c
index 1fe4f192..c0e033bb 100644
--- a/tests/run-threaded.c
+++ b/tests/run-threaded.c
@@ -627,6 +627,7 @@ void
start_keylistings (void)
{
static struct keylist_args_s args[4];
+ int i;
args[0].proto = GPGME_PROTOCOL_OpenPGP;
args[0].secret = 0;
@@ -640,7 +641,7 @@ start_keylistings (void)
args[3].proto = GPGME_PROTOCOL_CMS;
args[3].secret = 1;
- for (int i = 0; i < 4; i++)
+ for (i = 0; i < 4; i++)
{
thread_cnt--;
create_thread (do_keylist, &args[i]);
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;