From d7276fa0cdcf1808093b3778015cb34c658200ab Mon Sep 17 00:00:00 2001 From: Kiyoaki Matsugae Date: Wed, 12 Mar 2014 12:05:18 +0900 Subject: [PATCH] fix sched_setaffinity parameter : sizeof(cpu_set_t) --- cpu-miner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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