X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=tests%2Ftest_io_dir_list.c;h=1d3ec1772fe9eefb2428a2beae8f486a9216dfad;hp=29a9c31fa053011e74a5199956eed24a3551613e;hb=refs%2Fheads%2Fupstream;hpb=dcd813f21c83592155f712ff1acf450b483d8072 diff --git a/tests/test_io_dir_list.c b/tests/test_io_dir_list.c index 29a9c31..1d3ec17 100644 --- a/tests/test_io_dir_list.c +++ b/tests/test_io_dir_list.c @@ -23,7 +23,7 @@ #include "../src/lib/pio.h" -static int test_empty_dir() +static int test_empty_dir(void) { int ret; char **paths; @@ -38,12 +38,12 @@ static int test_empty_dir() } paths_free(paths); - } + } return ret; } -static int test_2files_dir() +static int test_2files_dir(void) { int ret, one, two; char **paths, **cur; @@ -68,21 +68,21 @@ static int test_2files_dir() ret = 1; } - + cur++; } - + if (!ret && one == 1 && two == 1) ret = 0; else ret = 1; - + paths_free(paths); return ret; } -static int tests_dir_list() { +static int tests_dir_list(void) { int failures; failures = test_empty_dir(); @@ -98,7 +98,7 @@ int main(int argc, char **argv) failures = tests_dir_list(); - if (failures) + if (failures) exit(EXIT_FAILURE); else exit(EXIT_SUCCESS);