diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
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, |