Fix const qualifier warnings.
This commit is contained in:
parent
d3e0976a2c
commit
cf2f4aac1c
@ -154,7 +154,7 @@ TEST_BEGIN(test_alignment_and_size) {
|
|||||||
const char *percpu_arena;
|
const char *percpu_arena;
|
||||||
size_t sz = sizeof(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) {
|
strcmp(percpu_arena, "disabled") != 0) {
|
||||||
test_skip("test_alignment_and_size skipped: "
|
test_skip("test_alignment_and_size skipped: "
|
||||||
"not working with percpu arena.");
|
"not working with percpu arena.");
|
||||||
|
@ -334,7 +334,7 @@ TEST_BEGIN(test_thread_arena) {
|
|||||||
|
|
||||||
const char *opa;
|
const char *opa;
|
||||||
size_t sz = sizeof(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");
|
"Unexpected mallctl() failure");
|
||||||
|
|
||||||
sz = sizeof(unsigned);
|
sz = sizeof(unsigned);
|
||||||
|
Loading…
Reference in New Issue
Block a user