Skip to content

Commit d52e1ab

Browse files
committed
screen: fix function signature
C23 is more pendantic than C11 about the function signature here.
1 parent 04ce654 commit d52e1ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libtock-sync/display/text_screen.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ static void text_screen_size_cb(returncode_t ret, uint32_t width, uint32_t heigh
2727
result_size.height = height;
2828
}
2929

30-
31-
static returncode_t text_screen_op(returncode_t (*op)()) {
30+
static returncode_t text_screen_op(returncode_t (*op)(void (*)(returncode_t))) {
3231
returncode_t ret;
3332
result.fired = false;
3433

0 commit comments

Comments
 (0)