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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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. -- cgit v1.2.3