From 941542704e3ec511ab17e4a20cc367527f6970c7 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Tue, 28 Feb 2012 17:09:11 -0500 Subject: [PATCH] ck_pr: bzero is deprecated. --- regressions/ck_pr/benchmark/benchmark.h | 2 +- regressions/ck_spinlock/benchmark/throughput.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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++) {