From 4bfc084c4974ecff94e273a7608ebc38f1c046ab Mon Sep 17 00:00:00 2001 From: tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> Date: Fri, 23 Sep 2005 17:39:14 +0000 Subject: * Applied ajax's cleanup patch git-svn-id: svn://svn.icculus.org/quake3/trunk@101 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_ui.c | 10 +++++----- code/client/snd_dma.c | 4 ++-- code/client/snd_mem.c | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'code/client') diff --git a/code/client/cl_ui.c b/code/client/cl_ui.c index d1fdd37..cda68e2 100644 --- a/code/client/cl_ui.c +++ b/code/client/cl_ui.c @@ -47,7 +47,7 @@ static void GetClientState( uiClientState_t *state ) { 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 @@ void LAN_LoadCachedServers( ) { 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 @@ static int LAN_AddServer(int source, const char *name, const char *address) { netadr_t adr; serverInfo_t *servers = NULL; max = MAX_OTHER_SERVERS; - count = 0; + count = NULL; switch (source) { case AS_LOCAL : @@ -182,7 +182,7 @@ LAN_RemoveServer 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 @@ void CL_InitUI( void ) { } } -qboolean UI_usesUniqueCDKey() { +qboolean UI_usesUniqueCDKey( void ) { if (uivm) { return (VM_Call( uivm, UI_HASUNIQUECDKEY) == qtrue); } else { diff --git a/code/client/snd_dma.c b/code/client/snd_dma.c index 9b271ab..ad027c0 100644 --- a/code/client/snd_dma.c +++ b/code/client/snd_dma.c @@ -938,7 +938,7 @@ void S_ByteSwapRawSamples( int samples, int width, int s_channels, const byte *d } } -portable_samplepair_t *S_GetRawSamplePointer() { +portable_samplepair_t *S_GetRawSamplePointer( void ) { return s_rawsamples; } @@ -1605,7 +1605,7 @@ S_FreeOldestSound ====================== */ -void S_FreeOldestSound() { +void S_FreeOldestSound( void ) { int i, oldest, used; sfx_t *sfx; sndBuffer *buffer, *nbuffer; diff --git a/code/client/snd_mem.c b/code/client/snd_mem.c index 23c413d..5ac4f1d 100644 --- a/code/client/snd_mem.c +++ b/code/client/snd_mem.c @@ -56,7 +56,7 @@ void SND_free(sndBuffer *v) { inUse += sizeof(sndBuffer); } -sndBuffer* SND_malloc() { +sndBuffer* SND_malloc(void) { sndBuffer *v; redo: if (freelist == NULL) { @@ -73,7 +73,7 @@ redo: return v; } -void SND_setup() { +void SND_setup(void) { sndBuffer *p, *q; cvar_t *cv; int scs; @@ -399,6 +399,6 @@ qboolean S_LoadSound( sfx_t *sfx ) return qtrue; } -void S_DisplayFreeMemory() { +void S_DisplayFreeMemory(void) { Com_Printf("%d bytes free sound buffer memory, %d total used\n", inUse, totalInUse); } -- cgit v1.2.3