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/libfstream/get_line.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/libfstream/get_line.c') diff --git a/tests/libfstream/get_line.c b/tests/libfstream/get_line.c index a2f6d85..7d9a26a 100644 --- a/tests/libfstream/get_line.c +++ b/tests/libfstream/get_line.c @@ -143,8 +143,10 @@ static const line_t lines_no_empty_trim[] = { { 10, "dog" }, }; -int main(void) +int main(int argc, char **argv) { + (void)argc; (void)argv; + run_test_case(lines_raw, 11, 0); run_test_case(lines_ltrim, 11, ISTREAM_LINE_LTRIM); run_test_case(lines_rtrim, 11, ISTREAM_LINE_RTRIM); -- cgit v1.2.3