summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-05 01:49:52 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-05 01:49:52 -0800
commitcc618f4e69e92541a6595e6b15f35bea5a132640 (patch)
treebcd31b121cf17d2b032abda451aba8d187e42d53 /src/xmenu.c
parent9bcaafce5351d270ac514e23cb69ff1a5fd35229 (diff)
downloademacs-cc618f4e69e92541a6595e6b15f35bea5a132640.tar.gz
* xmenu.c: conform to C89 const rules
(xmenu_show, xdialog_show): Declare local var as char *, not const char *, to stay compatible with C89 const rules.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 8ab10be8fac..ad1a764eab8 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1668,7 +1668,7 @@ xmenu_show (FRAME_PTR f, int x, int y, int for_click, int keymaps,
{
/* Create a new pane. */
Lisp_Object pane_name, prefix;
- const char *pane_string;
+ char *pane_string;
pane_name = AREF (menu_items, i + MENU_ITEMS_PANE_NAME);
prefix = AREF (menu_items, i + MENU_ITEMS_PANE_PREFIX);
@@ -2016,7 +2016,7 @@ xdialog_show (FRAME_PTR f,
representing the text label and buttons. */
{
Lisp_Object pane_name, prefix;
- const char *pane_string;
+ char *pane_string;
pane_name = XVECTOR (menu_items)->contents[MENU_ITEMS_PANE_NAME];
prefix = XVECTOR (menu_items)->contents[MENU_ITEMS_PANE_PREFIX];
pane_string = (NILP (pane_name)