From 8297b3faf8606762b176d57637f2ec5f84601e0d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 4 Dec 2021 21:12:06 +0100 Subject: 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 --- tests/libfstree/add_by_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/libfstree/add_by_path.c') diff --git a/tests/libfstree/add_by_path.c b/tests/libfstree/add_by_path.c index 94c0dc9..b21c696 100644 --- a/tests/libfstree/add_by_path.c +++ b/tests/libfstree/add_by_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; struct stat sb; fstree_t fs; char *opts; + (void)argc; (void)argv; opts = strdup("mode=0755,uid=21,gid=42"); TEST_ASSERT(fstree_init(&fs, opts) == 0); -- cgit v1.2.3