Index: src/cmd4.c =================================================================== --- src/cmd4.c (revision 1867) +++ src/cmd4.c (working copy) @@ -567,7 +567,7 @@ */ static void do_cmd_options_aux(void *vpage, cptr info) { - int page = (int)vpage; + int page = *((const int *)vpage); int opt[OPT_PAGE_PER]; int i, n = 0; int cursor_pos = 0; @@ -1618,14 +1618,19 @@ * * XXX Too many entries. */ +static const int C_0 = 0; +static const int C_1 = 1; +static const int C_2 = 2; +static const int C_3 = 3; +static const int C_4 = 4; static menu_action option_actions [] = { - {'a', "Interface options", do_cmd_options_aux, (void*)0}, - {'b', "Display options", do_cmd_options_aux, (void*)1}, - {'e', "Warning and disturbance options", do_cmd_options_aux, (void*)2}, - {'f', "Birth (difficulty) options", do_cmd_options_aux, (void*)3}, - {'g', "Cheat options", do_cmd_options_aux, (void*)4}, + {'a', "Interface options", do_cmd_options_aux, (void*) &C_0}, + {'b', "Display options", do_cmd_options_aux, (void*) &C_1}, + {'e', "Warning and disturbance options", do_cmd_options_aux, (void*) &C_2}, + {'f', "Birth (difficulty) options", do_cmd_options_aux, (void*) &C_3}, + {'g', "Cheat options", do_cmd_options_aux, (void*) &C_4}, {0, 0, 0, 0}, /* Load and append */ {'w', "Subwindow display settings", (action_f) do_cmd_options_win, 0}, {'s', "Item squelch settings", (action_f) do_cmd_options_item, 0},