From e986713657bc5f9880e91ed49dd9b0d0227f048d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 17 Jun 2024 17:39:06 +0200 Subject: Use callback function to log to stderr --- test/080_allowednext/allowednext_tests.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/080_allowednext') diff --git a/test/080_allowednext/allowednext_tests.c b/test/080_allowednext/allowednext_tests.c index e531911..644d4c5 100644 --- a/test/080_allowednext/allowednext_tests.c +++ b/test/080_allowednext/allowednext_tests.c @@ -11,7 +11,7 @@ static char *moves[] = { "B", "B2", "B'", }; -int main(void) { +void run(void) { char movestr[STRLENMAX]; uint8_t m[100]; int n, i, j; @@ -32,6 +32,4 @@ int main(void) { n > 1 ? moves[m[n-2]] : "-", n > 0 ? moves[m[n-1]] : "-"); printf("%s\n", allowednextmove(m, n) ? "true" : "false"); - - return 0; } -- cgit v1.3