diff options
Diffstat (limited to 'code/renderer')
-rw-r--r-- | code/renderer/tr_font.c | 4 | ||||
-rw-r--r-- | code/renderer/tr_image.c | 2 | ||||
-rw-r--r-- | code/renderer/tr_mesh.c | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/code/renderer/tr_font.c b/code/renderer/tr_font.c index 1878025..5901f38 100644 --- a/code/renderer/tr_font.c +++ b/code/renderer/tr_font.c @@ -527,7 +527,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) { -void R_InitFreeType() { +void R_InitFreeType(void) { #ifdef BUILD_FREETYPE if (FT_Init_FreeType( &ftLibrary )) { ri.Printf(PRINT_ALL, "R_InitFreeType: Unable to initialize FreeType.\n"); @@ -537,7 +537,7 @@ void R_InitFreeType() { } -void R_DoneFreeType() { +void R_DoneFreeType(void) { #ifdef BUILD_FREETYPE if (ftLibrary) { FT_Done_FreeType( ftLibrary ); diff --git a/code/renderer/tr_image.c b/code/renderer/tr_image.c index 630b886..22dadbe 100644 --- a/code/renderer/tr_image.c +++ b/code/renderer/tr_image.c @@ -1374,7 +1374,7 @@ static void LoadJPG( const char *filename, unsigned char **pic, int *width, int /* This struct contains the JPEG decompression parameters and pointers to * working space (which is allocated as needed by the JPEG library). */ - struct jpeg_decompress_struct cinfo = {0}; + struct jpeg_decompress_struct cinfo = {NULL}; /* We use our private extension JPEG error handler. * Note that this struct must live as long as the main JPEG parameter * struct, to avoid dangling-pointer problems. diff --git a/code/renderer/tr_mesh.c b/code/renderer/tr_mesh.c index e1e261e..23caef3 100644 --- a/code/renderer/tr_mesh.c +++ b/code/renderer/tr_mesh.c @@ -287,10 +287,10 @@ R_AddMD3Surfaces */ void R_AddMD3Surfaces( trRefEntity_t *ent ) { int i; - md3Header_t *header = 0; - md3Surface_t *surface = 0; - md3Shader_t *md3Shader = 0; - shader_t *shader = 0; + md3Header_t *header = NULL; + md3Surface_t *surface = NULL; + md3Shader_t *md3Shader = NULL; + shader_t *shader = NULL; int cull; int lod; int fogNum; |