mirror of
https://github.com/ioquake/ioq3.git
synced 2025-04-30 04:10:42 +00:00
Shut up compiler error
This commit is contained in:
parent
35c1e98934
commit
7471510c8e
1 changed files with 8 additions and 3 deletions
|
@ -162,13 +162,18 @@ qboolean Sys_WritePIDFile( void )
|
||||||
char pidBuffer[ 64 ] = { 0 };
|
char pidBuffer[ 64 ] = { 0 };
|
||||||
int pid;
|
int pid;
|
||||||
|
|
||||||
fread( pidBuffer, sizeof( char ), sizeof( pidBuffer ) - 1, f );
|
pid = fread( pidBuffer, sizeof( char ), sizeof( pidBuffer ) - 1, f );
|
||||||
fclose( f );
|
fclose( f );
|
||||||
|
|
||||||
|
if(pid > 0)
|
||||||
|
{
|
||||||
pid = atoi( pidBuffer );
|
pid = atoi( pidBuffer );
|
||||||
if( !Sys_PIDIsRunning( pid ) )
|
if( !Sys_PIDIsRunning( pid ) )
|
||||||
stale = qtrue;
|
stale = qtrue;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
stale = qtrue;
|
||||||
|
}
|
||||||
|
|
||||||
if( ( f = fopen( pidFile, "w" ) ) != NULL )
|
if( ( f = fopen( pidFile, "w" ) ) != NULL )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue