aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2018-04-06 11:50:17 -0700
committerQi Wang <interwq@gmail.com>2018-04-09 16:50:30 -0700
commitcf2f4aac1ca8c7d48a61a3921335fb411a3943a4 (patch)
treeac5b38b08003d9d7f22cdb585559c5a0f09e324a
parentd3e0976a2c1591b9fe433e7a383d8825683995f0 (diff)
downloadplatform_external_jemalloc_new-cf2f4aac1ca8c7d48a61a3921335fb411a3943a4.tar.gz
platform_external_jemalloc_new-cf2f4aac1ca8c7d48a61a3921335fb411a3943a4.tar.bz2
platform_external_jemalloc_new-cf2f4aac1ca8c7d48a61a3921335fb411a3943a4.zip
Fix const qualifier warnings.
-rw-r--r--test/integration/mallocx.c2
-rw-r--r--test/unit/mallctl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/mallocx.c b/test/integration/mallocx.c
index 35d72093..fd960f30 100644
--- a/test/integration/mallocx.c
+++ b/test/integration/mallocx.c
@@ -154,7 +154,7 @@ TEST_BEGIN(test_alignment_and_size) {
const char *percpu_arena;
size_t sz = sizeof(percpu_arena);
- if(mallctl("opt.percpu_arena", &percpu_arena, &sz, NULL, 0) ||
+ if(mallctl("opt.percpu_arena", (void *)&percpu_arena, &sz, NULL, 0) ||
strcmp(percpu_arena, "disabled") != 0) {
test_skip("test_alignment_and_size skipped: "
"not working with percpu arena.");
diff --git a/test/unit/mallctl.c b/test/unit/mallctl.c
index c9ba6c5d..f8b180b1 100644
--- a/test/unit/mallctl.c
+++ b/test/unit/mallctl.c
@@ -334,7 +334,7 @@ TEST_BEGIN(test_thread_arena) {
const char *opa;
size_t sz = sizeof(opa);
- assert_d_eq(mallctl("opt.percpu_arena", &opa, &sz, NULL, 0), 0,
+ assert_d_eq(mallctl("opt.percpu_arena", (void *)&opa, &sz, NULL, 0), 0,
"Unexpected mallctl() failure");
sz = sizeof(unsigned);