summaryrefslogtreecommitdiff
path: root/fitz/stm_read.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-03-11 15:59:50 +0100
committerTor Andersson <tor@ghostscript.com>2009-03-11 15:59:50 +0100
commit31733cfd3ba1a920542da3792f2591cf7ba5f62a (patch)
tree64a6751de8e6c171bfaa334188623a7134c285d2 /fitz/stm_read.c
parentb3092ce4920ea6456788a595c5dd9a794f79eed6 (diff)
downloadmupdf-31733cfd3ba1a920542da3792f2591cf7ba5f62a.tar.xz
Change fz_error* struct into an integer error type fz_error.
Diffstat (limited to 'fitz/stm_read.c')
-rw-r--r--fitz/stm_read.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/fitz/stm_read.c b/fitz/stm_read.c
index 1e3bd502..330d4ce7 100644
--- a/fitz/stm_read.c
+++ b/fitz/stm_read.c
@@ -5,12 +5,12 @@
#include "fitz_base.h"
#include "fitz_stream.h"
-fz_error *
+fz_error
fz_readimp(fz_stream *stm)
{
fz_buffer *buf = stm->buffer;
- fz_error *error;
- fz_error *reason;
+ fz_error error;
+ fz_error reason;
int produced;
int n;
@@ -151,10 +151,10 @@ fz_tell(fz_stream *stm)
}
}
-fz_error *
+fz_error
fz_seek(fz_stream *stm, int offset, int whence)
{
- fz_error *error;
+ fz_error error;
fz_buffer *buf = stm->buffer;
int t, c;
@@ -224,10 +224,10 @@ fz_seek(fz_stream *stm, int offset, int whence)
}
}
-fz_error *
+fz_error
fz_read(int *np, fz_stream *stm, unsigned char *mem, int n)
{
- fz_error *error;
+ fz_error error;
fz_buffer *buf = stm->buffer;
int i = 0;
@@ -254,10 +254,10 @@ fz_read(int *np, fz_stream *stm, unsigned char *mem, int n)
return fz_okay;
}
-fz_error *
+fz_error
fz_readerror(fz_stream *stm)
{
- fz_error *error;
+ fz_error error;
if (stm->error)
{
error = stm->error;
@@ -276,7 +276,7 @@ fz_readbytex(fz_stream *stm)
{
if (!buf->eof && !stm->error)
{
- fz_error *error = fz_readimp(stm);
+ fz_error error = fz_readimp(stm);
if (error)
stm->error = fz_rethrow(error, "cannot read data");
}
@@ -294,7 +294,7 @@ fz_peekbytex(fz_stream *stm)
{
if (!buf->eof && !stm->error)
{
- fz_error *error = fz_readimp(stm);
+ fz_error error = fz_readimp(stm);
if (error)
stm->error = fz_rethrow(error, "cannot read data");
}