From d4a770a4cb0fc25a929ac494ea0d239bda2fa046 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 20 Sep 2013 17:15:44 +0100 Subject: Fix missing 'const' in fz_authenticate_password The pdf_ versions were already correct. Probably just an oversight that this was missed. --- include/mupdf/fitz/document.h | 4 ++-- source/fitz/document.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h index 0c31e713..d1bbd75b 100644 --- a/include/mupdf/fitz/document.h +++ b/include/mupdf/fitz/document.h @@ -23,7 +23,7 @@ struct fz_document_s { void (*close)(fz_document *); int (*needs_password)(fz_document *doc); - int (*authenticate_password)(fz_document *doc, char *password); + int (*authenticate_password)(fz_document *doc, const char *password); fz_outline *(*load_outline)(fz_document *doc); int (*count_pages)(fz_document *doc); fz_page *(*load_page)(fz_document *doc, int number); @@ -94,7 +94,7 @@ int fz_needs_password(fz_document *doc); Does not throw exceptions. */ -int fz_authenticate_password(fz_document *doc, char *password); +int fz_authenticate_password(fz_document *doc, const char *password); /* fz_load_outline: Load the hierarchical document outline. diff --git a/source/fitz/document.c b/source/fitz/document.c index d1f90479..3926255b 100644 --- a/source/fitz/document.c +++ b/source/fitz/document.c @@ -111,7 +111,7 @@ fz_needs_password(fz_document *doc) } int -fz_authenticate_password(fz_document *doc, char *password) +fz_authenticate_password(fz_document *doc, const char *password) { if (doc && doc->authenticate_password) return doc->authenticate_password(doc, password); -- cgit v1.2.3