diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-15 14:24:36 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-15 14:24:36 -0400 |
commit | 7734d94d174ace6c10927c8f553c7bb2e851e827 (patch) | |
tree | 7788277752c9f61998fb535d1d1a3d66b259e5bc | |
parent | ef07878dae5a1a53293714da3f76f2063433b202 (diff) |
remove warnings
-rw-r--r-- | main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -87,18 +87,19 @@ void usage(const char *argv0) int main(int argc, char *argv[]) { int torun = 1; - int i, j; + int a; + size_t i, j; - for (i = 1; i < argc; i++) { + for (a = 1; a < argc; a++) { int ok = 0; - if (!strcmp("-v", argv[i])) { + if (!strcmp("-v", argv[a])) { verbose = 1; ok = 1; } for (j = 0; j < sizeof(tests) / sizeof(tests[0]); j++) { - if (!strcmp(tests[j].name, argv[i])) { + if (!strcmp(tests[j].name, argv[a])) { torun = 2; tests[j].run = 2; ok = 1; |