]> git.draconx.ca Git - cdecl99.git/blobdiff - t/crossparse.c
Avoid the use of for loop declarations.
[cdecl99.git] / t / crossparse.c
index 520b08a6009fee64d279b602a8749469202c9908..4122b1ce884d2463b4fd6e05fb3a5c48c149c922 100644 (file)
@@ -45,8 +45,6 @@ static void print_usage(FILE *f)
 
 static void print_help(void)
 {
-       const struct option *opt;
-
        print_usage(stdout);
        puts("Test that libcdecl can parse its own output.\n");
        test_print_options(lopts);
@@ -139,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;
@@ -194,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;
                }