diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-03-11 15:59:50 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-03-11 15:59:50 +0100 |
commit | 31733cfd3ba1a920542da3792f2591cf7ba5f62a (patch) | |
tree | 64a6751de8e6c171bfaa334188623a7134c285d2 /fitz/stm_open.c | |
parent | b3092ce4920ea6456788a595c5dd9a794f79eed6 (diff) | |
download | mupdf-31733cfd3ba1a920542da3792f2591cf7ba5f62a.tar.xz |
Change fz_error* struct into an integer error type fz_error.
Diffstat (limited to 'fitz/stm_open.c')
-rw-r--r-- | fitz/stm_open.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fitz/stm_open.c b/fitz/stm_open.c index c01ad725..c10809a0 100644 --- a/fitz/stm_open.c +++ b/fitz/stm_open.c @@ -64,9 +64,9 @@ fz_dropstream(fz_stream *stm) } } -fz_error * fz_openrfile(fz_stream **stmp, char *path) +fz_error fz_openrfile(fz_stream **stmp, char *path) { - fz_error *error; + fz_error error; fz_stream *stm; stm = newstm(FZ_SFILE); @@ -92,9 +92,9 @@ fz_error * fz_openrfile(fz_stream **stmp, char *path) return fz_okay; } -fz_error * fz_openrfilter(fz_stream **stmp, fz_filter *flt, fz_stream *src) +fz_error fz_openrfilter(fz_stream **stmp, fz_filter *flt, fz_stream *src) { - fz_error *error; + fz_error error; fz_stream *stm; stm = newstm(FZ_SFILTER); @@ -115,7 +115,7 @@ fz_error * fz_openrfilter(fz_stream **stmp, fz_filter *flt, fz_stream *src) return fz_okay; } -fz_error * fz_openrbuffer(fz_stream **stmp, fz_buffer *buf) +fz_error fz_openrbuffer(fz_stream **stmp, fz_buffer *buf) { fz_stream *stm; @@ -131,9 +131,9 @@ fz_error * fz_openrbuffer(fz_stream **stmp, fz_buffer *buf) return fz_okay; } -fz_error * fz_openrmemory(fz_stream **stmp, unsigned char *mem, int len) +fz_error fz_openrmemory(fz_stream **stmp, unsigned char *mem, int len) { - fz_error *error; + fz_error error; fz_buffer *buf; error = fz_newbufferwithmemory(&buf, mem, len); |