[quake3-commits] r1808 - trunk/code/sys
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jan 21 15:47:32 EST 2011
Author: thilo
Date: 2011-01-21 15:47:32 -0500 (Fri, 21 Jan 2011)
New Revision: 1808
Modified:
trunk/code/sys/sys_main.c
Log:
Shut up compiler error
Modified: trunk/code/sys/sys_main.c
===================================================================
--- trunk/code/sys/sys_main.c 2010-12-19 18:17:56 UTC (rev 1807)
+++ trunk/code/sys/sys_main.c 2011-01-21 20:47:32 UTC (rev 1808)
@@ -162,11 +162,16 @@
char pidBuffer[ 64 ] = { 0 };
int pid;
- fread( pidBuffer, sizeof( char ), sizeof( pidBuffer ) - 1, f );
+ pid = fread( pidBuffer, sizeof( char ), sizeof( pidBuffer ) - 1, f );
fclose( f );
- pid = atoi( pidBuffer );
- if( !Sys_PIDIsRunning( pid ) )
+ if(pid > 0)
+ {
+ pid = atoi( pidBuffer );
+ if( !Sys_PIDIsRunning( pid ) )
+ stale = qtrue;
+ }
+ else
stale = qtrue;
}
More information about the quake3-commits
mailing list