summaryrefslogtreecommitdiff
path: root/fitz/res_pixmap.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-12-30 15:43:42 +0000
committerSebastian Rasmussen <sebras@hotmail.com>2010-12-30 15:43:42 +0000
commit559252258781ed2f0eecd34d16a7b84ec52c0e21 (patch)
tree3efbcada2f2e940f44f5212b595503d52e0e8fd4 /fitz/res_pixmap.c
parent6e2a8f21f83b87bbf0530d92f809a3aea6aba724 (diff)
downloadmupdf-559252258781ed2f0eecd34d16a7b84ec52c0e21.tar.xz
Adhere to nil idiom.
Diffstat (limited to 'fitz/res_pixmap.c')
-rw-r--r--fitz/res_pixmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c
index 7455338a..8d207073 100644
--- a/fitz/res_pixmap.c
+++ b/fitz/res_pixmap.c
@@ -38,7 +38,7 @@ fz_newpixmapwithdata(fz_colorspace *colorspace, int x, int y, int w, int h, unsi
fz_pixmap *
fz_newpixmap(fz_colorspace *colorspace, int x, int y, int w, int h)
{
- return fz_newpixmapwithdata(colorspace, x, y, w, h, NULL);
+ return fz_newpixmapwithdata(colorspace, x, y, w, h, nil);
}
fz_pixmap *
@@ -283,7 +283,7 @@ static void putchunk(char *tag, unsigned char *data, int size, FILE *fp)
put32(size, fp);
fwrite(tag, 1, 4, fp);
fwrite(data, 1, size, fp);
- sum = crc32(0, NULL, 0);
+ sum = crc32(0, nil, 0);
sum = crc32(sum, (unsigned char*)tag, 4);
sum = crc32(sum, data, size);
put32(sum, fp);