diff --git a/apps/twnlua/game.c b/apps/twnlua/game.c index 9dbf13e..f84f585 100644 --- a/apps/twnlua/game.c +++ b/apps/twnlua/game.c @@ -87,7 +87,7 @@ static void *custom_alloc(void *ud, void *ptr, size_t osize, size_t nsize) { void game_tick(void) { if (ctx.initialization_needed) { if (!ctx.udata) - ctx.udata = ccalloc(1, sizeof (State)); + ctx.udata = calloc(1, sizeof (State)); State *state = ctx.udata; diff --git a/src/twn_timer.c b/src/twn_timer.c index ac3716e..6840222 100644 --- a/src/twn_timer.c +++ b/src/twn_timer.c @@ -33,7 +33,7 @@ bool start_sanity_timer(uint32_t milliseconds_to_expire) { } -bool end_sanity_timer(void) { +void end_sanity_timer(void) { SDL_RemoveTimer(sanity_timer); sanity_timer = 0; } diff --git a/src/twn_timer_c.h b/src/twn_timer_c.h index b0e96f7..bdbfde7 100644 --- a/src/twn_timer_c.h +++ b/src/twn_timer_c.h @@ -5,6 +5,6 @@ #include bool start_sanity_timer(uint32_t milliseconds_to_expire); -bool end_sanity_timer(void); +void end_sanity_timer(void); #endif // TWN_TIMER_H