diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-11-17 23:30:28 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-11-22 22:40:46 +0800 |
commit | d0dc76b33c469067d0a4750d9b8b02a869004581 (patch) | |
tree | 3f5225533cc2df133b34e3f7fe382814a47bfbda /source | |
parent | d0043016884169a734eb9481b411fb045f6196f9 (diff) | |
download | mupdf-d0dc76b33c469067d0a4750d9b8b02a869004581.tar.xz |
Fix const compiler warning.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-appearance.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index 5627aaa4..c5193ea4 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -2342,7 +2342,7 @@ static void insert_signature_appearance_layers(fz_context *ctx, pdf_document *do /* MuPDF blue */ static float logo_color[3] = {(float)0x25/(float)0xFF, (float)0x72/(float)0xFF, (float)0xAC/(float)0xFF}; -void pdf_set_signature_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot, char *name, char *dn, char *date) +void pdf_set_signature_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot, char *name, const char *dn, char *date) { pdf_obj *obj = annot->obj; pdf_obj *dr = pdf_dict_getl(ctx, pdf_trailer(ctx, doc), PDF_NAME_Root, PDF_NAME_AcroForm, PDF_NAME_DR, NULL); diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index 738a4df4..fabe796f 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -720,7 +720,7 @@ void pdf_sign_signature(fz_context *ctx, pdf_document *doc, pdf_widget *widget, fz_try(ctx) { - char *dn_str; + const char *dn_str; pdf_obj *wobj = ((pdf_annot *)widget)->obj; fz_rect rect = fz_empty_rect; |