summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2009-07-06 02:09:52 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2009-07-06 02:09:52 +0200
commitfd2fe9791264ff8ed8a9bf9d374e796bf011776e (patch)
treeeaf15f9ca1073c4766daafd047e53765102d86e2 /fitz
parent270a50ae98b1efeee17ba745c4ccf0eba52a4a0c (diff)
downloadmupdf-fd2fe9791264ff8ed8a9bf9d374e796bf011776e.tar.xz
Use nil instead of 0 for pointers.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/filt_faxc.h4
-rw-r--r--fitz/filt_jpxd_jas.c2
-rw-r--r--fitz/obj_print.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/fitz/filt_faxc.h b/fitz/filt_faxc.h
index f11334be..9250690a 100644
--- a/fitz/filt_faxc.h
+++ b/fitz/filt_faxc.h
@@ -52,7 +52,7 @@ findchanging(const unsigned char *line, int x, int w)
{
int a, b;
- if (line == 0)
+ if (line)
return w;
if (x == -1)
@@ -80,7 +80,7 @@ findchanging(const unsigned char *line, int x, int w)
static inline int
findchangingcolor(const unsigned char *line, int x, int w, int color)
{
- if (line == 0)
+ if (line)
return w;
x = findchanging(line, x, w);
diff --git a/fitz/filt_jpxd_jas.c b/fitz/filt_jpxd_jas.c
index c07f396c..f9b5f89c 100644
--- a/fitz/filt_jpxd_jas.c
+++ b/fitz/filt_jpxd_jas.c
@@ -99,7 +99,7 @@ input:
decode:
jas_stream_seek(d->stream, 0, 0);
- d->image = jas_image_decode(d->stream, -1, 0);
+ d->image = jas_image_decode(d->stream, -1, nil);
if (!d->image)
return fz_throw("jasper error: jas_image_decode()");
diff --git a/fitz/obj_print.c b/fitz/obj_print.c
index d9bb174a..3e2094a8 100644
--- a/fitz/obj_print.c
+++ b/fitz/obj_print.c
@@ -250,7 +250,7 @@ static void fmtobj(struct fmt *fmt, fz_obj *obj)
int i, c;
for (i = 0; i < obj->u.s.len; i++) {
c = (unsigned char)obj->u.s.buf[i];
- if (strchr("()\\\n\r\t\b\f", c) != 0)
+ if (strchr("()\\\n\r\t\b\f", c))
added ++;
else if (c < 8)
added ++;