aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-31 18:00:28 -0400
committerDavid Robillard <d@drobilla.net>2016-07-31 18:00:28 -0400
commit53b9436cc497c184901f6bb283a578373ed3083b (patch)
treeaef991d341759effccbeafe26dedb1ff4da07192 /src
parent15fedb68b3f63cab32dbd4dbb69dd1b2256b063c (diff)
downloadserd-53b9436cc497c184901f6bb283a578373ed3083b.tar.gz
serd-53b9436cc497c184901f6bb283a578373ed3083b.tar.bz2
serd-53b9436cc497c184901f6bb283a578373ed3083b.zip
Fix compilation with C++
Diffstat (limited to 'src')
-rw-r--r--src/reader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c
index b85284cd..59e0dd2e 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -118,8 +118,9 @@ page(SerdReader* reader)
reader->eof = true;
if (ferror(reader->fd)) {
reader->error = true;
- return r_err(reader, SERD_ERR_UNKNOWN,
- "read error: %s\n", strerror(errno));
+ r_err(reader, SERD_ERR_UNKNOWN,
+ "read error: %s\n", strerror(errno));
+ return SERD_ERR_UNKNOWN;
} else {
return SERD_FAILURE;
}