2
0
Fork 0

[plugin_core] Fix mixed declarations and code

This commit is contained in:
Stefan Bühler 2010-09-05 13:24:16 +02:00
parent 7d938e48e3
commit 91fda70bca
1 changed files with 2 additions and 4 deletions

View File

@ -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
}