diff options
Diffstat (limited to 'src/sink.c')
-rw-r--r-- | src/sink.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -3,24 +3,24 @@ #include "sink.h" -#include "memory.h" #include "statement.h" #include "serd/node.h" #include "serd/sink.h" #include "serd/statement.h" #include "serd/status.h" +#include "zix/allocator.h" #include <assert.h> #include <stdlib.h> SerdSink* -serd_sink_new(SerdAllocator* const allocator, - void* const handle, - SerdEventFunc event_func, - SerdFreeFunc free_handle) +serd_sink_new(ZixAllocator* const allocator, + void* const handle, + SerdEventFunc event_func, + SerdFreeFunc free_handle) { - SerdSink* sink = (SerdSink*)serd_acalloc(allocator, 1, sizeof(SerdSink)); + SerdSink* sink = (SerdSink*)zix_calloc(allocator, 1, sizeof(SerdSink)); if (sink) { sink->allocator = allocator; @@ -40,7 +40,7 @@ serd_sink_free(SerdSink* sink) sink->free_handle(sink->handle); } - serd_afree(sink->allocator, sink); + zix_free(sink->allocator, sink); } } |