diff --git a/regressions/ck_pr/benchmark/benchmark.h b/regressions/ck_pr/benchmark/benchmark.h index 82a6517..7f6676e 100644 --- a/regressions/ck_pr/benchmark/benchmark.h +++ b/regressions/ck_pr/benchmark/benchmark.h @@ -89,7 +89,7 @@ main(int argc, char *argv[]) fprintf(stderr, "ERROR: Could not create acquisition buffer\n"); exit(EXIT_FAILURE); } - bzero(count, sizeof(uint64_t) * nthr); + memset(count, 0, sizeof(uint64_t) * nthr); fprintf(stderr, "Creating threads (fairness)..."); for (i = 0; i < nthr; i++) { diff --git a/regressions/ck_spinlock/benchmark/throughput.h b/regressions/ck_spinlock/benchmark/throughput.h index 6e1dbba..d3e53a1 100644 --- a/regressions/ck_spinlock/benchmark/throughput.h +++ b/regressions/ck_spinlock/benchmark/throughput.h @@ -175,7 +175,7 @@ main(int argc, char *argv[]) fprintf(stderr, "ERROR: Could not create acquisition buffer\n"); exit(EXIT_FAILURE); } - bzero(count, sizeof(*count) * nthr); + memset(count, 0, sizeof(*count) * nthr); fprintf(stderr, "Creating threads (fairness)..."); for (i = 0; i < nthr; i++) {