regressions/ck_rhs: -Wcast-qual clean-up.

ck_pring
Samy Al Bahra 10 years ago
parent 4224f53159
commit 2030767b21

@ -150,7 +150,8 @@ run_test(unsigned int is, unsigned int ad)
if (i & 1) {
if (ck_rhs_put_unique(&hs[j], h, test[i]) == false)
ck_error("ERROR [%zu]: Failed to insert unique (%s)\n", j, test[i]);
} else if (ck_rhs_apply(&hs[j], h, test[i], test_unique, (char *)test[i]) == false) {
} else if (ck_rhs_apply(&hs[j], h, test[i], test_unique,
(void *)(uintptr_t)test[i]) == false) {
ck_error("ERROR: Failed to apply for insertion.\n");
}
@ -161,7 +162,8 @@ run_test(unsigned int is, unsigned int ad)
ck_error("ERROR: Failed to remove apply.\n");
}
if (ck_rhs_apply(&hs[j], h, test[i], test_negative, (char *)test[i]) == false)
if (ck_rhs_apply(&hs[j], h, test[i], test_negative,
(void *)(uintptr_t)test[i]) == false)
ck_error("ERROR: Failed to apply.\n");
break;
@ -268,8 +270,10 @@ run_test(unsigned int is, unsigned int ad)
ck_error("ERROR [%u]: Invalid &hs[j]: %s != %s\n", (char *)r, test[i], is);
}
/* Attempt in-place mutation. */
if (ck_rhs_apply(&hs[j], h, test[i], test_ip, (void *)test[i]) == false)
if (ck_rhs_apply(&hs[j], h, test[i], test_ip,
(void *)(uintptr_t)test[i]) == false) {
ck_error("ERROR [%u]: Failed to apply: %s != %s\n", is, (char *)r, test[i]);
}
d = ck_rhs_get(&hs[j], h, test[i]) != NULL;
if (d == false)

Loading…
Cancel
Save