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/libsqfs/xattr_writer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/libsqfs/xattr_writer.c') diff --git a/tests/libsqfs/xattr_writer.c b/tests/libsqfs/xattr_writer.c index 8860f42..6fa0355 100644 --- a/tests/libsqfs/xattr_writer.c +++ b/tests/libsqfs/xattr_writer.c @@ -71,7 +71,7 @@ static sqfs_compressor_t dummy_compressor = { /*****************************************************************************/ -int main(void) +int main(int argc, char **argv) { size_t offset, ool_value_offset, id_offset; sqfs_xattr_id_table_t idtbl; @@ -85,6 +85,7 @@ int main(void) sqfs_u64 ref; sqfs_u32 id; int ret; + (void)argc; (void)argv; /* setup */ xwr = sqfs_xattr_writer_create(0); -- cgit v1.2.3