X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=tools%2Fquake3%2Fcommon%2Fthreads.c;h=04946dd2f72edfc87566a954fee655d57becd854;hp=4d44bf36c8743ac9dd5a58f6c661f80a15dcee88;hb=2bbbfad1bcc689228c5dcc3fc40ec84dd81b0772;hpb=c6378c2c623e72d1890feda4afc85d25cb636d9b diff --git a/tools/quake3/common/threads.c b/tools/quake3/common/threads.c index 4d44bf36..04946dd2 100644 --- a/tools/quake3/common/threads.c +++ b/tools/quake3/common/threads.c @@ -538,7 +538,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){ size_t stacksize; int start, end; - int i = 0, status = 0; + int i = 0; start = I_FloatTime(); pacifier = showpacifier; @@ -582,7 +582,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){ } for ( i = 0 ; i < numthreads ; i++ ) { - if ( pthread_join( work_threads[i], (void **)&status ) != 0 ) { + if ( pthread_join( work_threads[i], NULL ) != 0 ) { Error( "pthread_join failed" ); } }