summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2011-05-31 14:16:28 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-06-01 15:52:36 +0200
commit5aaae3d936afc0aa4ff999b42b5a754c40885f75 (patch)
treeecac21a3197ccb813d2bd7dc48d7c26666787685 /pdf
parent1323675852c82c8dbc79b46d7bfd882e3282edc0 (diff)
downloadmupdf-5aaae3d936afc0aa4ff999b42b5a754c40885f75.tar.xz
Fix android build; bug 692222.
Bring the MuPDF android build up to date with the latest source changes. Many thanks to Dominic Battre for his helpful report in bug 692222.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/mupdf.h2
-rw-r--r--pdf/pdf_xref.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pdf/mupdf.h b/pdf/mupdf.h
index 30032798..6870edfc 100644
--- a/pdf/mupdf.h
+++ b/pdf/mupdf.h
@@ -91,7 +91,7 @@ fz_error pdf_open_stream(fz_stream **stmp, pdf_xref *, int num, int gen);
fz_error pdf_open_stream_at(fz_stream **stmp, pdf_xref *xref, int num, int gen, fz_obj *dict, int stm_ofs);
fz_error pdf_open_xref_with_stream(pdf_xref **xrefp, fz_stream *file, char *password);
-fz_error pdf_open_xref(pdf_xref **xrefp, char *filename, char *password);
+fz_error pdf_open_xref(pdf_xref **xrefp, const char *filename, char *password);
void pdf_free_xref(pdf_xref *);
/* private */
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index 0e29625c..6f85671a 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -917,7 +917,7 @@ pdf_update_object(pdf_xref *xref, int num, int gen, fz_obj *newobj)
*/
fz_error
-pdf_open_xref(pdf_xref **xrefp, char *filename, char *password)
+pdf_open_xref(pdf_xref **xrefp, const char *filename, char *password)
{
fz_error error;
fz_stream *file;