From 40ea9d09e75426e19453ad584b71e47bad9a2617 Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Fri, 20 Jul 2007 03:03:29 +0000 Subject: Fixes red hopefully git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13936 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/dice.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c index 73927372a6..1c3cb2f421 100644 --- a/apps/plugins/dice.c +++ b/apps/plugins/dice.c @@ -143,7 +143,7 @@ bool dice_menu(struct dices * dice) { MENUITEM_STRINGLIST(menu,"Dice Menu",NULL,"Roll Dice","Number of Dice", "Number of Sides","Quit"); - struct opt_items nb_sides_option[8] = { + static struct opt_items nb_sides_option[8] = { { "3", -1 }, { "4", -1 }, { "6", -1 }, @@ -153,7 +153,8 @@ bool dice_menu(struct dices * dice) { { "20", -1 }, { "100", -1 } }; - int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 }; + static int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 }; + while (!menu_quit) { switch(rb->do_menu(&menu, &selection)){ case 0: -- cgit v1.2.3