X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fcommon%2Fthreads.c;h=b886cb8721a7c8ce5c4fd2096e4f002ddb5c714e;hb=265c42d5a54ec436f9463e79e000b5a566a0b296;hp=04946dd2f72edfc87566a954fee655d57becd854;hpb=a7445040d9648f73613fb4e89b614f1993ce9e64;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/common/threads.c b/tools/quake3/common/threads.c index 04946dd2..b886cb87 100644 --- a/tools/quake3/common/threads.c +++ b/tools/quake3/common/threads.c @@ -576,7 +576,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){ for ( i = 0 ; i < numthreads ; i++ ) { /* Default pthread attributes: joinable & non-realtime scheduling */ - if ( pthread_create( &work_threads[i], &attr, (void*)func, (void*)(size_t)i ) != 0 ) { + if (pthread_create(&work_threads[i], &attr, (void *(*)(void *)) func, (void*)(size_t)i ) != 0 ) { Error( "pthread_create failed" ); } }