From d0dc76b33c469067d0a4750d9b8b02a869004581 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 17 Nov 2016 23:30:28 +0800 Subject: Fix const compiler warning. --- source/pdf/pdf-appearance.c | 2 +- source/pdf/pdf-pkcs7.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf') 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; -- cgit v1.2.3