From b631e7a3d6a807aaf4919396b62ba96e1a9f0bd9 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 the C standard --- src/reader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/reader.c') diff --git a/src/reader.c b/src/reader.c index 02738cd2..c7919ca6 100644 --- a/src/reader.c +++ b/src/reader.c @@ -303,7 +303,7 @@ serd_reader_start_stream(SerdReader* const reader, const bool bulk) { return serd_reader_start_source_stream(reader, - bulk ? (SerdSource)fread + bulk ? (SerdReadFunc)fread : serd_file_read_byte, (SerdStreamErrorFunc)ferror, file, @@ -313,7 +313,7 @@ serd_reader_start_stream(SerdReader* const reader, SerdStatus serd_reader_start_source_stream(SerdReader* const reader, - const SerdSource read_func, + const SerdReadFunc read_func, const SerdStreamErrorFunc error_func, void* const stream, const char* const name, @@ -369,7 +369,7 @@ serd_reader_read_file_handle(SerdReader* const reader, const char* const name) { return serd_reader_read_source(reader, - (SerdSource)fread, + (SerdReadFunc)fread, (SerdStreamErrorFunc)ferror, file, name, @@ -378,7 +378,7 @@ serd_reader_read_file_handle(SerdReader* const reader, SerdStatus serd_reader_read_source(SerdReader* const reader, - const SerdSource source, + const SerdReadFunc source, const SerdStreamErrorFunc error, void* const stream, const char* const name, -- cgit v1.2.1