aboutsummaryrefslogtreecommitdiff
path: root/extras/mknastyfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-12-04 21:12:06 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-12-05 10:32:01 +0100
commit8297b3faf8606762b176d57637f2ec5f84601e0d (patch)
tree0b30ab78333f6f04adb1ab1ed56113246a17198e /extras/mknastyfs.c
parent2b8eb19a4de81db470f7ff5021a8a4822cc8c80d (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 'extras/mknastyfs.c')
-rw-r--r--extras/mknastyfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/mknastyfs.c b/extras/mknastyfs.c
index ecc6b8a..c65759c 100644
--- a/extras/mknastyfs.c
+++ b/extras/mknastyfs.c
@@ -49,7 +49,7 @@ static sqfs_inode_generic_t *create_file_inode(sqfs_id_table_t *idtbl,
return inode;
}
-int main(void)
+int main(int argc, char **argv)
{
sqfs_meta_writer_t *inode_m, *dir_m;
int ret, status = EXIT_FAILURE;
@@ -63,6 +63,7 @@ int main(void)
sqfs_super_t super;
sqfs_file_t *file;
sqfs_u32 offset;
+ (void)argc; (void)argv;
/* get a file object referring to our destination file */
file = sqfs_open_file("nasty.sqfs", 0);