[plugin_core] Fix mixed declarations and code
This commit is contained in:
parent
7d938e48e3
commit
91fda70bca
|
@ -1742,14 +1742,12 @@ static const liPluginAngel angelcbs[] = {
|
|||
#include <sys/types.h>
|
||||
|
||||
static void plugin_core_prepare_worker(liServer *srv, liPlugin *p, liWorker *wrk) {
|
||||
UNUSED(p);
|
||||
|
||||
|
||||
#if defined(LIGHTY_OS_LINUX)
|
||||
/* sched_setaffinity is only available on linux */
|
||||
cpu_set_t mask;
|
||||
liValue *v = srv->workers_cpu_affinity;
|
||||
GArray *arr;
|
||||
UNUSED(p);
|
||||
|
||||
if (!v)
|
||||
return;
|
||||
|
@ -1785,7 +1783,7 @@ static void plugin_core_prepare_worker(liServer *srv, liPlugin *p, liWorker *wrk
|
|||
ERROR(srv, "couldn't set cpu affinity mask for worker #%u: %s", wrk->ndx, g_strerror(errno));
|
||||
}
|
||||
#else
|
||||
UNUSED(srv); UNUSED(wrk);
|
||||
UNUSED(srv); UNUSED(wrk); UNUSED(p);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue