summaryrefslogtreecommitdiff
path: root/src/macmenu.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2006-10-31 08:32:08 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2006-10-31 08:32:08 +0000
commit37a39780ffd10f5d7e4429f7837eb780960de6ad (patch)
treee295f446da7cdfd9c95f402b7ab1718684c85595 /src/macmenu.c
parente4e64b037bb44d96a12fb79a238c693394a6df58 (diff)
downloademacs-37a39780ffd10f5d7e4429f7837eb780960de6ad.tar.gz
(install_menu_quit_handler): Make variable `typesList'
static const. (name_is_separator): Add const qualifier to arguments.
Diffstat (limited to 'src/macmenu.c')
-rw-r--r--src/macmenu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/macmenu.c b/src/macmenu.c
index 1a1525eafb7..02fae600cdf 100644
--- a/src/macmenu.c
+++ b/src/macmenu.c
@@ -1500,7 +1500,8 @@ install_menu_quit_handler (kind, menu_handle)
MenuHandle menu_handle;
{
#ifdef HAVE_CANCELMENUTRACKING
- EventTypeSpec typesList[] = { { kEventClassKeyboard, kEventRawKeyDown } };
+ static const EventTypeSpec typesList[] =
+ {{kEventClassKeyboard, kEventRawKeyDown}};
int id;
for (id = min_menu_id[kind]; id < min_menu_id[kind + 1]; id++)
@@ -2428,9 +2429,9 @@ mac_dialog_show (f, keymaps, title, header, error_name)
/* Is this item a separator? */
static int
name_is_separator (name)
- char *name;
+ const char *name;
{
- char *start = name;
+ const char *start = name;
/* Check if name string consists of only dashes ('-'). */
while (*name == '-') name++;