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/libutil/xxhash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/libutil/xxhash.c') diff --git a/tests/libutil/xxhash.c b/tests/libutil/xxhash.c index 6e17097..b0b1bac 100644 --- a/tests/libutil/xxhash.c +++ b/tests/libutil/xxhash.c @@ -44,10 +44,11 @@ static const struct { }, }; -int main(void) +int main(int argc, char **argv) { sqfs_u32 hash; size_t i; + (void)argc; (void)argv; for (i = 0; i < sizeof(test_vectors) / sizeof(test_vectors[0]); ++i) { hash = xxh32(test_vectors[i].plaintext, test_vectors[i].psize); -- cgit v1.2.3