* Applied ajax's cleanup patch

This commit is contained in:
Tim Angus 2005-09-23 17:39:14 +00:00
parent 4c6f59c541
commit fe14a45ad1
40 changed files with 166 additions and 166 deletions

View file

@ -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 {

View file

@ -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;

View file

@ -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);
}