summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-write.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-10-11 14:06:22 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-10-12 15:18:06 +0200
commit992c7c6cf15813760f4582682f5a48daba5d4239 (patch)
treefaffce19eb79fd8ed7dbc16b74abd798e8bd196f /source/pdf/pdf-write.c
parenta94e86a03d3059b2bd7f48b9bbc436253bd2d94e (diff)
downloadmupdf-992c7c6cf15813760f4582682f5a48daba5d4239.tar.xz
Some more consts.
Diffstat (limited to 'source/pdf/pdf-write.c')
-rw-r--r--source/pdf/pdf-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c
index de3b4d7d..164df6b4 100644
--- a/source/pdf/pdf-write.c
+++ b/source/pdf/pdf-write.c
@@ -1527,7 +1527,7 @@ static int isbinarystream(fz_context *ctx, fz_buffer *buf)
return 0;
}
-static fz_buffer *hexbuf(fz_context *ctx, unsigned char *p, size_t n)
+static fz_buffer *hexbuf(fz_context *ctx, const unsigned char *p, size_t n)
{
static const char hex[17] = "0123456789abcdef";
int x = 0;
@@ -1602,7 +1602,7 @@ static void addhexfilter(fz_context *ctx, pdf_document *doc, pdf_obj *dict)
fz_rethrow(ctx);
}
-static fz_buffer *deflatebuf(fz_context *ctx, unsigned char *p, size_t n)
+static fz_buffer *deflatebuf(fz_context *ctx, const unsigned char *p, size_t n)
{
fz_buffer *buf;
uLongf csize;