Index: code/unix/unix_shared.c =================================================================== --- code/unix/unix_shared.c (revision 90) +++ code/unix/unix_shared.c (working copy) @@ -253,7 +253,7 @@ nfiles = 0; Sys_ListFilteredFiles( directory, "", filter, list, &nfiles ); - list[ nfiles ] = 0; + list[ nfiles ] = NULL; *numfiles = nfiles; if (!nfiles) @@ -309,7 +309,7 @@ nfiles++; } - list[ nfiles ] = 0; + list[ nfiles ] = NULL; closedir(fdir); @@ -428,7 +428,7 @@ #if defined(__linux__) // TTimo // sysconf() in libc, POSIX.1 compliant -unsigned int Sys_ProcessorCount() +unsigned int Sys_ProcessorCount(void) { return sysconf(_SC_NPROCESSORS_ONLN); } Index: code/unix/sdl_glimp.c =================================================================== --- code/unix/sdl_glimp.c (revision 90) +++ code/unix/sdl_glimp.c (working copy) @@ -1316,13 +1316,13 @@ if (!SDL_WasInit(SDL_INIT_JOYSTICK)) { - Com_Printf( PRINT_ALL, "Calling SDL_Init(SDL_INIT_JOYSTICK)...\n"); + Com_Printf("Calling SDL_Init(SDL_INIT_JOYSTICK)...\n"); if (SDL_Init(SDL_INIT_JOYSTICK) == -1) { Com_Printf("SDL_Init(SDL_INIT_JOYSTICK) failed: %s\n", SDL_GetError()); return; } - Com_Printf( PRINT_ALL, "SDL_Init(SDL_INIT_JOYSTICK) passed.\n"); + Com_Printf("SDL_Init(SDL_INIT_JOYSTICK) passed.\n"); } total = SDL_NumJoysticks(); Index: code/unix/sdl_snd.c =================================================================== --- code/unix/sdl_snd.c (revision 90) +++ code/unix/sdl_snd.c (working copy) @@ -169,13 +169,13 @@ if (!SDL_WasInit(SDL_INIT_AUDIO)) { - Com_Printf( PRINT_ALL, "Calling SDL_Init(SDL_INIT_AUDIO)...\n"); + Com_Printf("Calling SDL_Init(SDL_INIT_AUDIO)...\n"); if (SDL_Init(SDL_INIT_AUDIO) == -1) { - Com_Printf( PRINT_ALL, "SDL_Init(SDL_INIT_AUDIO) failed: %s\n", SDL_GetError()); + Com_Printf("SDL_Init(SDL_INIT_AUDIO) failed: %s\n", SDL_GetError()); return qfalse; } - Com_Printf( PRINT_ALL, "SDL_Init(SDL_INIT_AUDIO) passed.\n"); + Com_Printf("SDL_Init(SDL_INIT_AUDIO) passed.\n"); } if (SDL_AudioDriverName(drivername, sizeof (drivername)) == NULL) Index: code/unix/linux_qgl.c =================================================================== --- code/unix/linux_qgl.c (revision 90) +++ code/unix/linux_qgl.c (working copy) @@ -3407,17 +3407,17 @@ qglXCopyContext = GPA("glXCopyContext"); qglXSwapBuffers = GPA("glXSwapBuffers"); - qglLockArraysEXT = 0; - qglUnlockArraysEXT = 0; - qglPointParameterfEXT = 0; - qglPointParameterfvEXT = 0; - qglColorTableEXT = 0; - qgl3DfxSetPaletteEXT = 0; - qglSelectTextureSGIS = 0; - qglMTexCoord2fSGIS = 0; - qglActiveTextureARB = 0; - qglClientActiveTextureARB = 0; - qglMultiTexCoord2fARB = 0; + qglLockArraysEXT = NULL; + qglUnlockArraysEXT = NULL; + qglPointParameterfEXT = NULL; + qglPointParameterfvEXT = NULL; + qglColorTableEXT = NULL; + qgl3DfxSetPaletteEXT = NULL; + qglSelectTextureSGIS = NULL; + qglMTexCoord2fSGIS = NULL; + qglActiveTextureARB = NULL; + qglClientActiveTextureARB = NULL; + qglMultiTexCoord2fARB = NULL; return qtrue; } Index: code/renderer/tr_mesh.c =================================================================== --- code/renderer/tr_mesh.c (revision 90) +++ code/renderer/tr_mesh.c (working copy) @@ -266,10 +266,10 @@ */ 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; Index: code/renderer/tr_font.c =================================================================== --- code/renderer/tr_font.c (revision 90) +++ code/renderer/tr_font.c (working copy) @@ -527,7 +527,7 @@ -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_DoneFreeType() { +void R_DoneFreeType(void) { #ifdef BUILD_FREETYPE if (ftLibrary) { FT_Done_FreeType( ftLibrary ); Index: code/renderer/tr_image.c =================================================================== --- code/renderer/tr_image.c (revision 90) +++ code/renderer/tr_image.c (working copy) @@ -1372,7 +1372,7 @@ /* 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. Index: code/qcommon/files.c =================================================================== --- code/qcommon/files.c (revision 90) +++ code/qcommon/files.c (working copy) @@ -321,7 +321,7 @@ ============== */ -qboolean FS_Initialized() { +qboolean FS_Initialized( void ) { return (fs_searchpaths != NULL); } @@ -354,7 +354,7 @@ return load stack ================= */ -int FS_LoadStack() +int FS_LoadStack( void ) { return fs_loadStack; } Index: code/qcommon/unzip.c =================================================================== --- code/qcommon/unzip.c (revision 90) +++ code/qcommon/unzip.c (working copy) @@ -235,7 +235,7 @@ #define Z_DEFLATED 8 /* The deflate compression method (the only one supported in this version) */ -#define Z_NULL 0 /* for initializing zalloc, zfree, opaque */ +#define Z_NULL (void *)0 /* for initializing zalloc, zfree, opaque */ #define zlib_version zlibVersion() /* for compatibility with versions < 1.0.2 */ Index: code/client/snd_dma.c =================================================================== --- code/client/snd_dma.c (revision 90) +++ code/client/snd_dma.c (working copy) @@ -938,7 +938,7 @@ } } -portable_samplepair_t *S_GetRawSamplePointer() { +portable_samplepair_t *S_GetRawSamplePointer( void ) { return s_rawsamples; } @@ -1605,7 +1605,7 @@ ====================== */ -void S_FreeOldestSound() { +void S_FreeOldestSound( void ) { int i, oldest, used; sfx_t *sfx; sndBuffer *buffer, *nbuffer; Index: code/client/snd_mem.c =================================================================== --- code/client/snd_mem.c (revision 90) +++ code/client/snd_mem.c (working copy) @@ -56,7 +56,7 @@ inUse += sizeof(sndBuffer); } -sndBuffer* SND_malloc() { +sndBuffer* SND_malloc(void) { sndBuffer *v; redo: if (freelist == NULL) { @@ -73,7 +73,7 @@ return v; } -void SND_setup() { +void SND_setup(void) { sndBuffer *p, *q; cvar_t *cv; int scs; @@ -399,6 +399,6 @@ return qtrue; } -void S_DisplayFreeMemory() { +void S_DisplayFreeMemory(void) { Com_Printf("%d bytes free sound buffer memory, %d total used\n", inUse, totalInUse); } Index: code/client/cl_ui.c =================================================================== --- code/client/cl_ui.c (revision 90) +++ code/client/cl_ui.c (working copy) @@ -47,7 +47,7 @@ LAN_LoadCachedServers ==================== */ -void LAN_LoadCachedServers( ) { +void LAN_LoadCachedServers( void ) { int size; fileHandle_t fileIn; cls.numglobalservers = cls.nummplayerservers = cls.numfavoriteservers = 0; @@ -74,7 +74,7 @@ LAN_SaveServersToCache ==================== */ -void LAN_SaveServersToCache( ) { +void LAN_SaveServersToCache( void ) { int size; fileHandle_t fileOut = FS_SV_FOpenFileWrite("servercache.dat"); FS_Write(&cls.numglobalservers, sizeof(int), fileOut); @@ -134,7 +134,7 @@ netadr_t adr; serverInfo_t *servers = NULL; max = MAX_OTHER_SERVERS; - count = 0; + count = NULL; switch (source) { case AS_LOCAL : @@ -182,7 +182,7 @@ static void LAN_RemoveServer(int source, const char *addr) { int *count, i; serverInfo_t *servers = NULL; - count = 0; + count = NULL; switch (source) { case AS_LOCAL : count = &cls.numlocalservers; @@ -1173,7 +1173,7 @@ } } -qboolean UI_usesUniqueCDKey() { +qboolean UI_usesUniqueCDKey( void ) { if (uivm) { return (VM_Call( uivm, UI_HASUNIQUECDKEY) == qtrue); } else {