diff --git a/src/text.c b/src/text.c index 6030c30..b889b6e 100644 --- a/src/text.c +++ b/src/text.c @@ -13,7 +13,7 @@ typedef struct FontCacheObject { FontCacheObject_t fontCache[FONT_CACHE_SIZE]; unsigned fontCacheSize = 0; -void text_freeFontCache(){ +void text_freeFontCache(void){ for(unsigned i = 0; i < fontCacheSize; ++i){ free(fontCache[i].file); TTF_CloseFont(fontCache[i].font); diff --git a/src/text.h b/src/text.h index 17b2c53..354a40f 100644 --- a/src/text.h +++ b/src/text.h @@ -13,6 +13,6 @@ typedef struct { int text_renderText(RenderObject_t* renderObject, Position position, SDL_Color color, const char* fontFilename, int fontSize, char* format, ...); -void text_freeFontCache(); +void text_freeFontCache(void); #endif