summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test.c b/test.c
index 48d36d0..56ba9d6 100644
--- a/test.c
+++ b/test.c
@@ -547,10 +547,10 @@ static void *hi_realloc_fail(void *ptr, size_t size) {
static void test_allocator_injection(void) {
hiredisAllocFuncs ha = {
- .malloc = hi_malloc_fail,
- .calloc = hi_calloc_fail,
- .realloc = hi_realloc_fail,
- .free = NULL,
+ .mallocFn = hi_malloc_fail,
+ .callocFn = hi_calloc_fail,
+ .reallocFn = hi_realloc_fail,
+ .freeFn = NULL,
};
// Override hiredis allocators