summaryrefslogtreecommitdiff
path: root/fitz/filt_faxd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/filt_faxd.c')
-rw-r--r--fitz/filt_faxd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fitz/filt_faxd.c b/fitz/filt_faxd.c
index e0f35654..cc083138 100644
--- a/fitz/filt_faxd.c
+++ b/fitz/filt_faxd.c
@@ -41,7 +41,7 @@ struct fz_faxd_s
unsigned char *dst;
};
-fz_error
+fz_error
fz_newfaxd(fz_filter **fp, fz_obj *params)
{
fz_obj *obj;
@@ -95,7 +95,7 @@ fz_newfaxd(fz_filter **fp, fz_obj *params)
if (!fax->ref)
{
fz_free(fax);
- return fz_throw("outofmem: scanline buffer one");
+ return fz_rethrow(-1, "out of memory: scanline buffer one");
}
fax->dst = fz_malloc(fax->stride);
@@ -103,7 +103,7 @@ fz_newfaxd(fz_filter **fp, fz_obj *params)
{
fz_free(fax);
fz_free(fax->ref);
- return fz_throw("outofmem: scanline buffer two");
+ return fz_rethrow(-1, "out of memory: scanline buffer two");
}
memset(fax->ref, 0, fax->stride);
@@ -161,7 +161,7 @@ getcode(fz_faxd *fax, const cfd_node *table, int initialbits)
}
/* decode one 1d code */
-static fz_error
+static fz_error
dec1d(fz_faxd *fax)
{
int code;
@@ -200,7 +200,7 @@ dec1d(fz_faxd *fax)
}
/* decode one 2d code */
-static fz_error
+static fz_error
dec2d(fz_faxd *fax)
{
int code, b1, b2;
@@ -318,7 +318,7 @@ dec2d(fz_faxd *fax)
return 0;
}
-fz_error
+fz_error
fz_processfaxd(fz_filter *f, fz_buffer *in, fz_buffer *out)
{
fz_faxd *fax = (fz_faxd*)f;