diff options
author | David Robillard <d@drobilla.net> | 2016-07-31 18:00:28 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-31 18:00:28 -0400 |
commit | 53b9436cc497c184901f6bb283a578373ed3083b (patch) | |
tree | aef991d341759effccbeafe26dedb1ff4da07192 | |
parent | 15fedb68b3f63cab32dbd4dbb69dd1b2256b063c (diff) | |
download | serd-53b9436cc497c184901f6bb283a578373ed3083b.tar.gz serd-53b9436cc497c184901f6bb283a578373ed3083b.tar.bz2 serd-53b9436cc497c184901f6bb283a578373ed3083b.zip |
Fix compilation with C++
-rw-r--r-- | src/reader.c | 5 |
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; } |