diff options
author | Allen Winter <allen.winter@kdab.com> | 2021-04-17 08:09:29 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2021-04-17 08:09:29 -0400 |
commit | 0815d0e21f3b82c453f24ac8ad9446fd24b4674e (patch) | |
tree | dfd98663fe906aaada27490aa2ee3ab0e4659f8f | |
parent | a07e3cd3b2bf213b5065cde15d0a3de73d767535 (diff) | |
download | libical-git-0815d0e21f3b82c453f24ac8ad9446fd24b4674e.tar.gz |
src/test/icalrecur_test.c - fix for loop initial declaration
we don't require C99 mode. found on travis
-rw-r--r-- | src/test/icalrecur_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/icalrecur_test.c b/src/test/icalrecur_test.c index 2a2a16fc..acee1d09 100644 --- a/src/test/icalrecur_test.c +++ b/src/test/icalrecur_test.c @@ -584,6 +584,7 @@ int main(int argc, char *argv[]) /* Default to RFC 5545 tests */ const struct recur *r = rfc5545; FILE *fp = fopen("test.out", "w"); + int i; int verbose = 0; if (fp == NULL) { @@ -592,7 +593,7 @@ int main(int argc, char *argv[]) } /* Do not use getopt for command line parsing -- for portability on Windows */ - for (int i = 1; i < argc; ++i) { + for (i = 1; i < argc; ++i) { if (strncmp(argv[i], "-r", 2) == 0) { /* Do RSCALE tests */ r = rscale; continue; |