diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-12-04 21:12:06 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-12-05 10:32:01 +0100 |
commit | 8297b3faf8606762b176d57637f2ec5f84601e0d (patch) | |
tree | 0b30ab78333f6f04adb1ab1ed56113246a17198e /tests/libfstree/get_path.c | |
parent | 2b8eb19a4de81db470f7ff5021a8a4822cc8c80d (diff) |
Fix: unit test and sample program Windows build
Now that there is a wrapper for main() on Windows, all executable
programs must use a common, cannonical signature for main().
Furthermore, the Windows version of the epoch test needs wrappers
for setenv/unsetenv.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libfstree/get_path.c')
-rw-r--r-- | tests/libfstree/get_path.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libfstree/get_path.c b/tests/libfstree/get_path.c index 9bf618b..26dd9ea 100644 --- a/tests/libfstree/get_path.c +++ b/tests/libfstree/get_path.c @@ -9,12 +9,13 @@ #include "fstree.h" #include "../test.h" -int main(void) +int main(int argc, char **argv) { tree_node_t *a, *b, *c, *d; struct stat sb; fstree_t fs; char *str; + (void)argc; (void)argv; TEST_ASSERT(fstree_init(&fs, NULL) == 0); |