diff options
author | David Robillard <d@drobilla.net> | 2020-08-15 15:37:05 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-15 22:52:05 +0200 |
commit | 18d181f3e8bedb8f1e85d6f1b8a84110d055a3a5 (patch) | |
tree | 1fb2a699e3d240435d61ea2d74426094b5281a5c /src/reader.c | |
parent | af9f6fbab811d12e23c69b3cc849ad08bfb9c282 (diff) | |
download | serd-18d181f3e8bedb8f1e85d6f1b8a84110d055a3a5.tar.gz serd-18d181f3e8bedb8f1e85d6f1b8a84110d055a3a5.tar.bz2 serd-18d181f3e8bedb8f1e85d6f1b8a84110d055a3a5.zip |
Make r_err() return a status
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reader.c b/src/reader.c index 4a22a84f..4d281af7 100644 --- a/src/reader.c +++ b/src/reader.c @@ -26,7 +26,7 @@ #include <stdlib.h> #include <string.h> -int +SerdStatus r_err(SerdReader* reader, SerdStatus st, const char* fmt, ...) { va_list args; @@ -35,7 +35,7 @@ r_err(SerdReader* reader, SerdStatus st, const char* fmt, ...) const SerdError e = { st, cur->filename, cur->line, cur->col, fmt, &args }; serd_error(reader->error_sink, reader->error_handle, &e); va_end(args); - return 0; + return st; } void |