summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-01 17:25:16 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-01 20:51:45 +0100
commit1fa2c8140cd29557c67d8523dfc05c27ba93e564 (patch)
tree1a46856230fa9e52ebb4ede9414d95c589be1d23 /include
parent8388e888aa336980f5f00dcccd7d7a8bb411966d (diff)
downloadmupdf-1fa2c8140cd29557c67d8523dfc05c27ba93e564.tar.xz
Add const to filename string.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/crypt.h2
-rw-r--r--include/mupdf/pdf/document.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mupdf/pdf/crypt.h b/include/mupdf/pdf/crypt.h
index 18260dbb..cb8eba41 100644
--- a/include/mupdf/pdf/crypt.h
+++ b/include/mupdf/pdf/crypt.h
@@ -37,7 +37,7 @@ pdf_signer *pdf_read_pfx(fz_context *ctx, const char *sigfile, const char *passw
pdf_signer *pdf_keep_signer(fz_context *ctx, pdf_signer *signer);
void pdf_drop_signer(fz_context *ctx, pdf_signer *signer);
pdf_designated_name *pdf_signer_designated_name(fz_context *ctx, pdf_signer *signer);
-void pdf_write_digest(fz_context *ctx, pdf_document *doc, char *filename, pdf_obj *byte_range, int digest_offset, int digest_length, pdf_signer *signer);
+void pdf_write_digest(fz_context *ctx, pdf_document *doc, const char *filename, pdf_obj *byte_range, int digest_offset, int digest_length, pdf_signer *signer);
/*
pdf_signature_widget_byte_range: retrieve the byte range for a signature widget
diff --git a/include/mupdf/pdf/document.h b/include/mupdf/pdf/document.h
index e8d0f07e..de7df553 100644
--- a/include/mupdf/pdf/document.h
+++ b/include/mupdf/pdf/document.h
@@ -319,6 +319,6 @@ struct pdf_write_options_s
/*
pdf_save_document: Write out the document to a file with all changes finalised.
*/
-void pdf_save_document(fz_context *ctx, pdf_document *doc, char *filename, pdf_write_options *opts);
+void pdf_save_document(fz_context *ctx, pdf_document *doc, const char *filename, pdf_write_options *opts);
#endif