From a083c64f506175029280ff76defa0ad7d7ae2ea0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Jun 2020 23:26:48 +0200 Subject: Simplify input stream API --- src/read_turtle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/read_turtle.c') diff --git a/src/read_turtle.c b/src/read_turtle.c index 19a47ebf..828818ba 100644 --- a/src/read_turtle.c +++ b/src/read_turtle.c @@ -49,7 +49,7 @@ read_whitespace(SerdReader* const reader) case '\n': case '\r': case ' ': - return serd_byte_source_advance(&reader->source); + return serd_byte_source_advance(reader->source); case '#': return read_comment(reader); default: @@ -1019,7 +1019,7 @@ read_turtle_statement(SerdReader* const reader) SerdStatus read_turtleDoc(SerdReader* const reader) { - while (!reader->source.eof) { + while (!reader->source->eof) { const size_t orig_stack_size = reader->stack.size; const SerdStatus st = read_turtle_statement(reader); -- cgit v1.2.1