From 992c7c6cf15813760f4582682f5a48daba5d4239 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Oct 2017 14:06:22 +0200 Subject: Some more consts. --- source/pdf/pdf-write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf/pdf-write.c') 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; -- cgit v1.2.3