summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 14:24:36 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 14:24:36 -0400
commit7734d94d174ace6c10927c8f553c7bb2e851e827 (patch)
tree7788277752c9f61998fb535d1d1a3d66b259e5bc
parentef07878dae5a1a53293714da3f76f2063433b202 (diff)
remove warnings
-rw-r--r--main.c9
1 files 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;