Get rid of compiler warnings for runtests

This commit is contained in:
Dan Buch 2016-04-16 23:33:44 -04:00
parent efdcb2e6ec
commit eaf65f1d9d
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -20,7 +20,7 @@ int run_tests_file(char *filename)
return -1; return -1;
} }
int main(int argc, char *argv[]) int main(void)
{ {
int entcount = 0; int entcount = 0;
int rc = 0; int rc = 0;
@ -72,7 +72,7 @@ int main(int argc, char *argv[])
printf("ERROR in test %s: here's tests/tests.log\n", filename); printf("ERROR in test %s: here's tests/tests.log\n", filename);
printf("------\n"); printf("------\n");
system("tail tests/tests.log"); rc = system("tail tests/tests.log");
goto error; goto error;
} }
@ -90,5 +90,5 @@ error:
free(namelist); free(namelist);
} }
return 1; return rc != 0 ? rc : 1;
} }