diff --git a/cpu-miner.c b/cpu-miner.c index 78779f6..95f9f26 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -62,7 +62,7 @@ static inline void affine_to_cpu(int id, int cpu) CPU_ZERO(&set); CPU_SET(cpu, &set); - sched_setaffinity(0, sizeof(&set), &set); + sched_setaffinity(0, sizeof(set), &set); } #elif defined(__FreeBSD__) /* FreeBSD specific policy and affinity management */ #include