remove unnecessary fileHandle_t typecasts

This commit is contained in:
svdijk 2013-05-13 21:11:52 +02:00
parent 2ad4255187
commit f5a44ff5ae
4 changed files with 6 additions and 6 deletions

View file

@ -194,7 +194,7 @@ SV_SpawnServer(char *server, char *spawnpoint, server_state_t serverstate,
if (sv.demofile)
{
FS_FCloseFile((fileHandle_t)sv.demofile);
FS_FCloseFile(sv.demofile);
}
svs.spawncount++; /* any partially connected client will be restarted */

View file

@ -681,7 +681,7 @@ SV_Shutdown(char *finalmsg, qboolean reconnect)
/* free current level */
if (sv.demofile)
{
FS_FCloseFile((fileHandle_t)sv.demofile);
FS_FCloseFile(sv.demofile);
}
memset(&sv, 0, sizeof(sv));

View file

@ -466,7 +466,7 @@ SV_DemoCompleted(void)
{
if (sv.demofile)
{
FS_FCloseFile((fileHandle_t)sv.demofile);
FS_FCloseFile(sv.demofile);
sv.demofile = 0;
}
@ -527,7 +527,7 @@ SV_SendClientMessages(void)
else
{
/* get the next message */
r = FS_FRead(&msglen, 4, 1, (fileHandle_t)sv.demofile);
r = FS_FRead(&msglen, 4, 1, sv.demofile);
if (r != 4)
{
@ -549,7 +549,7 @@ SV_SendClientMessages(void)
"SV_SendClientMessages: msglen > MAX_MSGLEN");
}
r = FS_FRead(msgbuf, msglen, 1, (fileHandle_t)sv.demofile);
r = FS_FRead(msgbuf, msglen, 1, sv.demofile);
if (r != msglen)
{

View file

@ -36,7 +36,7 @@ SV_BeginDemoserver(void)
char name[MAX_OSPATH];
Com_sprintf(name, sizeof(name), "demos/%s", sv.name);
FS_FOpenFile(name, (fileHandle_t *)&sv.demofile, FS_READ);
FS_FOpenFile(name, &sv.demofile, FS_READ);
if (!sv.demofile)
{