# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1162283528 0 # Node ID 4d143b423b75322777acc4207128140f19e18722 # Parent 7791c57d3fc64eb8b768e95141a519fa6f4e78eb (install_menu_quit_handler): Make variable `typesList' static const. (name_is_separator): Add const qualifier to arguments. diff -r 7791c57d3fc6 -r 4d143b423b75 src/macmenu.c --- a/src/macmenu.c Tue Oct 31 08:31:50 2006 +0000 +++ b/src/macmenu.c Tue Oct 31 08:32:08 2006 +0000 @@ -1500,7 +1500,8 @@ 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 @@ /* 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++;