diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-09-20 17:15:44 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-09-23 17:09:50 +0100 |
commit | d4a770a4cb0fc25a929ac494ea0d239bda2fa046 (patch) | |
tree | 21294919f85afcb0b6456d582c733742a6817f56 | |
parent | 1081e59243303d6c045c9aca67d5931c000a765b (diff) | |
download | mupdf-d4a770a4cb0fc25a929ac494ea0d239bda2fa046.tar.xz |
Fix missing 'const' in fz_authenticate_password
The pdf_ versions were already correct. Probably just an
oversight that this was missed.
-rw-r--r-- | include/mupdf/fitz/document.h | 4 | ||||
-rw-r--r-- | 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); |