summaryrefslogtreecommitdiff
path: root/cbz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-01-11 16:00:27 +0000
committerRobin Watts <robin.watts@artifex.com>2013-01-11 16:50:48 +0000
commitd91e333e2fe42f83301ecb7311cfe6e25868fb78 (patch)
treec6c82681d6607b0ef1a561b66307911a11becb00 /cbz
parentc195b10d6e188e825fdd58372168f1caaf72ab23 (diff)
downloadmupdf-d91e333e2fe42f83301ecb7311cfe6e25868fb78.tar.xz
Bug 693519: Replace char * with const char * in open document.
Simple patch to replace const char * with char *. I made the patch myself, but I suspect it's extremely close to the one submitted by Evgeniy A Dushistov, who reported the bug - many thanks!
Diffstat (limited to 'cbz')
-rw-r--r--cbz/mucbz.c2
-rw-r--r--cbz/mucbz.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cbz/mucbz.c b/cbz/mucbz.c
index 1fc2fbe6..101a3d8d 100644
--- a/cbz/mucbz.c
+++ b/cbz/mucbz.c
@@ -312,7 +312,7 @@ cbz_open_document_with_stream(fz_context *ctx, fz_stream *file)
}
cbz_document *
-cbz_open_document(fz_context *ctx, char *filename)
+cbz_open_document(fz_context *ctx, const char *filename)
{
fz_stream *file;
cbz_document *doc;
diff --git a/cbz/mucbz.h b/cbz/mucbz.h
index 05288eb3..24a40315 100644
--- a/cbz/mucbz.h
+++ b/cbz/mucbz.h
@@ -19,7 +19,7 @@ typedef struct cbz_page_s cbz_page;
filename: a path to a file as it would be given to open(2).
*/
-cbz_document *cbz_open_document(fz_context *ctx, char *filename);
+cbz_document *cbz_open_document(fz_context *ctx, const char *filename);
/*
cbz_open_document_with_stream: Opens a document.