diff options
Diffstat (limited to 'fitz/base_error.c')
-rw-r--r-- | fitz/base_error.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fitz/base_error.c b/fitz/base_error.c index c0d4a42f..44df2b59 100644 --- a/fitz/base_error.c +++ b/fitz/base_error.c @@ -10,7 +10,7 @@ void fz_warn(char *fmt, ...) fprintf(stderr, "\n"); } -fz_error * fz_throwimp(const char *func, const char *file, int line, char *fmt, ...) +fz_error fz_throwimp(const char *func, const char *file, int line, char *fmt, ...) { va_list ap; fprintf(stderr, "+ %s:%d: %s(): ", file, line, func); @@ -18,10 +18,10 @@ fz_error * fz_throwimp(const char *func, const char *file, int line, char *fmt, vfprintf(stderr, fmt, ap); va_end(ap); fprintf(stderr, "\n"); - return ((fz_error*)-1); + return ((fz_error)-1); } -fz_error * fz_rethrowimp(fz_error *cause, const char *func, const char *file, int line, char *fmt, ...) +fz_error fz_rethrowimp(fz_error cause, const char *func, const char *file, int line, char *fmt, ...) { va_list ap; fprintf(stderr, "| %s:%d: %s(): ", file, line, func); @@ -32,7 +32,7 @@ fz_error * fz_rethrowimp(fz_error *cause, const char *func, const char *file, in return cause; } -fz_error * fz_catchimp(fz_error *cause, const char *func, const char *file, int line, char *fmt, ...) +fz_error fz_catchimp(fz_error cause, const char *func, const char *file, int line, char *fmt, ...) { va_list ap; fprintf(stderr, "\\ %s:%d: %s(): ", file, line, func); |