summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-07-09 00:22:16 +0800
committerSebastian Rasmussen <sebras@gmail.com>2018-07-09 00:22:45 +0800
commitfe8b5f202600e5a328e58222a451ec61dad38875 (patch)
treeb977ab5014d69a421f1bf4de673b69d38233061c
parent75c457ddd28a629a9e1d6e1a8fa313ffef1457cb (diff)
downloadmupdf-fe8b5f202600e5a328e58222a451ec61dad38875.tar.xz
Silence gcc warnings about non-const arguments.
-rw-r--r--platform/gl/gl-form.c2
-rw-r--r--platform/x11/pdfapp.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/gl/gl-form.c b/platform/gl/gl-form.c
index b9da50a1..123e8769 100644
--- a/platform/gl/gl-form.c
+++ b/platform/gl/gl-form.c
@@ -117,7 +117,7 @@ void do_widget_panel(void)
}
else if (type == PDF_WIDGET_TYPE_COMBOBOX || type == PDF_WIDGET_TYPE_LISTBOX)
{
- char **options;
+ const char **options;
int n, choice;
ui_label("Value:");
n = pdf_choice_widget_options(ctx, selected_annot->page->doc, selected_annot, 0, NULL);
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index 5bacb467..a3ad0947 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -1682,8 +1682,8 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
{
int nopts;
int nvals;
- char **opts = NULL;
- char **vals = NULL;
+ const char **opts = NULL;
+ const char **vals = NULL;
fz_var(opts);
fz_var(vals);