aboutsummaryrefslogtreecommitdiffstats
path: root/tests/read_chunk_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/read_chunk_test.c')
-rw-r--r--tests/read_chunk_test.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/read_chunk_test.c b/tests/read_chunk_test.c
index aadbe2c8..ed648e5f 100644
--- a/tests/read_chunk_test.c
+++ b/tests/read_chunk_test.c
@@ -59,13 +59,8 @@ on_end(void* handle, const SerdNode* node)
int
main(int argc, char** argv)
{
- SerdReader* reader = serd_reader_new(SERD_TURTLE,
- NULL,
- NULL,
- on_base,
- on_prefix,
- on_statement,
- on_end);
+ SerdSinkInterface sink = { 0, on_base, on_prefix, on_statement, on_end };
+ SerdReader* reader = serd_reader_new(SERD_TURTLE, &sink);
if (!reader) {
FAIL("Failed to create reader\n");
}