]> git.draconx.ca Git - cdecl99.git/blobdiff - t/crossparse.c
Avoid the use of for loop declarations.
[cdecl99.git] / t / crossparse.c
index 630e02e05c0417e6b4cca4b224adef56cd3b826a..4122b1ce884d2463b4fd6e05fb3a5c48c149c922 100644 (file)
@@ -137,6 +137,7 @@ int main(int argc, char **argv)
 {
        int opt, mode = MODE_CDECL;
        int ret = EXIT_SUCCESS;
+       int i;
 
        const char *filename = NULL;
        FILE *infile = NULL;
@@ -192,7 +193,7 @@ int main(int argc, char **argv)
                free(line);
                fclose(infile);
        } else if (argv[optind]) {
-               for (int i = optind; i < argc; i++) {
+               for (i = optind; i < argc; i++) {
                        if (!test_crossparse(argv[i], mode))
                                ret = EXIT_FAILURE;
                }