projects
/
psensor-pkg-debian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.2.0
[psensor-pkg-debian.git]
/
tests
/
test_io_dir_list.c
diff --git
a/tests/test_io_dir_list.c
b/tests/test_io_dir_list.c
index
29a9c31
..
1d3ec17
100644
(file)
--- a/
tests/test_io_dir_list.c
+++ b/
tests/test_io_dir_list.c
@@
-23,7
+23,7
@@
#include "../src/lib/pio.h"
#include "../src/lib/pio.h"
-static int test_empty_dir()
+static int test_empty_dir(
void
)
{
int ret;
char **paths;
{
int ret;
char **paths;
@@
-38,12
+38,12
@@
static int test_empty_dir()
}
paths_free(paths);
}
paths_free(paths);
- }
+ }
return ret;
}
return ret;
}
-static int test_2files_dir()
+static int test_2files_dir(
void
)
{
int ret, one, two;
char **paths, **cur;
{
int ret, one, two;
char **paths, **cur;
@@
-68,21
+68,21
@@
static int test_2files_dir()
ret = 1;
}
ret = 1;
}
-
+
cur++;
}
cur++;
}
-
+
if (!ret && one == 1 && two == 1)
ret = 0;
else
ret = 1;
if (!ret && one == 1 && two == 1)
ret = 0;
else
ret = 1;
-
+
paths_free(paths);
return ret;
}
paths_free(paths);
return ret;
}
-static int tests_dir_list() {
+static int tests_dir_list(
void
) {
int failures;
failures = test_empty_dir();
int failures;
failures = test_empty_dir();
@@
-98,7
+98,7
@@
int main(int argc, char **argv)
failures = tests_dir_list();
failures = tests_dir_list();
- if (failures)
+ if (failures)
exit(EXIT_FAILURE);
else
exit(EXIT_SUCCESS);
exit(EXIT_FAILURE);
else
exit(EXIT_SUCCESS);