summaryrefslogtreecommitdiff
path: root/source/cbz/mucbz.c
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2014-01-02 22:13:52 +0100
committerRobin Watts <robin.watts@artifex.com>2014-01-06 13:13:36 +0000
commitfc0432b9121d528d9b775cd9ed103732c6440973 (patch)
tree535f81099ad080269b043cc37300effa1b3c5a06 /source/cbz/mucbz.c
parent9b92bac1ec135862132b1c49b977b53891b73d88 (diff)
downloadmupdf-fc0432b9121d528d9b775cd9ed103732c6440973.tar.xz
fix MSVC warnings C4054 and C4152
These warnings are caused by casting function pointers to void* instead of proper function types.
Diffstat (limited to 'source/cbz/mucbz.c')
-rw-r--r--source/cbz/mucbz.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c
index d9be58f3..fa654a54 100644
--- a/source/cbz/mucbz.c
+++ b/source/cbz/mucbz.c
@@ -421,12 +421,12 @@ cbz_rebind(cbz_document *doc, fz_context *ctx)
static void
cbz_init_document(cbz_document *doc)
{
- doc->super.close = (void*)cbz_close_document;
- doc->super.count_pages = (void*)cbz_count_pages;
- doc->super.load_page = (void*)cbz_load_page;
- doc->super.bound_page = (void*)cbz_bound_page;
- doc->super.run_page_contents = (void*)cbz_run_page;
- doc->super.free_page = (void*)cbz_free_page;
- doc->super.meta = (void*)cbz_meta;
- doc->super.rebind = (void *)cbz_rebind;
+ doc->super.close = (fz_document_close_fn *)cbz_close_document;
+ doc->super.count_pages = (fz_document_count_pages_fn *)cbz_count_pages;
+ doc->super.load_page = (fz_document_load_page_fn *)cbz_load_page;
+ doc->super.bound_page = (fz_document_bound_page_fn *)cbz_bound_page;
+ doc->super.run_page_contents = (fz_document_run_page_contents_fn *)cbz_run_page;
+ doc->super.free_page = (fz_document_free_page_fn *)cbz_free_page;
+ doc->super.meta = (fz_document_meta_fn *)cbz_meta;
+ doc->super.rebind = (fz_document_rebind_fn *)cbz_rebind;
}