From ce6fbad56fb6970fe507186d6560ad4fac981d74 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Jun 2018 09:26:17 -0400 Subject: Bring read/write interface closer to C standard --- tests/serd_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/serd_test.c b/tests/serd_test.c index 7062cee8..76a535fa 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -137,7 +137,7 @@ test_read_chunks(void) assert(f); SerdStatus st = serd_reader_start_stream(reader, - (SerdSource)fread, + (SerdReadFunc)fread, (SerdStreamErrorFunc)ferror, f, NULL, @@ -504,7 +504,7 @@ test_writer(const char* const path) assert(fd); SerdWriter* writer = serd_writer_new( - SERD_TURTLE, (SerdStyle)0, env, NULL, serd_file_sink, fd); + SERD_TURTLE, (SerdStyle)0, env, NULL, (SerdWriteFunc)fwrite, fd); assert(writer); serd_writer_chop_blank_prefix(writer, "tmp"); @@ -636,7 +636,7 @@ test_reader(const char* path) fseek(temp, 0L, SEEK_SET); serd_reader_start_stream(reader, - (SerdSource)fread, + (SerdReadFunc)fread, (SerdStreamErrorFunc)ferror, temp, NULL, @@ -654,7 +654,7 @@ test_reader(const char* path) { size_t n_reads = 0; serd_reader_start_stream(reader, - (SerdSource)eof_test_read, + (SerdReadFunc)eof_test_read, (SerdStreamErrorFunc)eof_test_error, &n_reads, NULL, -- cgit v1.2.1