diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 4 | ||||
-rw-r--r-- | source/pdf/pdf-write.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index 6303a3c9..c63c5f6f 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -549,7 +549,7 @@ pdf_designated_name *pdf_signer_designated_name(fz_context *ctx, pdf_signer *sig return (pdf_designated_name *)dn; } -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) { BIO *bdata = NULL; BIO *bsegs = NULL; @@ -797,7 +797,7 @@ void pdf_drop_signer(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) { } diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index e9b06d33..6e9065bd 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -2551,7 +2551,7 @@ static void presize_unsaved_signature_byteranges(fz_context *ctx, pdf_document * } } -static void complete_signatures(fz_context *ctx, pdf_document *doc, pdf_write_state *opts, char *filename) +static void complete_signatures(fz_context *ctx, pdf_document *doc, pdf_write_state *opts, const char *filename) { pdf_unsaved_sig *usig; char buf[5120]; @@ -2716,7 +2716,7 @@ static void finalise_write_state(fz_context *ctx, pdf_write_state *opts) fz_drop_output(ctx, opts->out); } -void pdf_save_document(fz_context *ctx, pdf_document *doc, char *filename, pdf_write_options *in_opts) +void pdf_save_document(fz_context *ctx, pdf_document *doc, const char *filename, pdf_write_options *in_opts) { pdf_write_options opts_defaults = { 0 }; pdf_write_state opts = { 0 }; |