aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpu-miner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu-miner.c b/cpu-miner.c
index 160c1c3..7d378dd 100644
--- a/cpu-miner.c
+++ b/cpu-miner.c
@@ -910,8 +910,8 @@ int main (int argc, char *argv[])
openlog("cpuminer", LOG_PID, LOG_USER);
#endif
- work_restart = calloc(opt_n_threads, sizeof(*work_restart));
- if (!work_restart)
+ if (posix_memalign(&work_restart, 128,
+ sizeof(*work_restart) * opt_n_threads))
return 1;
thr_info = calloc(opt_n_threads + 2, sizeof(*thr));