From 7734d94d174ace6c10927c8f553c7bb2e851e827 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 15 Aug 2020 14:24:36 -0400 Subject: remove warnings --- main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 9d53ca3..e376016 100644 --- a/main.c +++ b/main.c @@ -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; -- cgit v1.2.1