summaryrefslogtreecommitdiffstats
path: root/apps/plugins/dice.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
commit0b41f0599f62ec9099197bbe6f4dd7144cebe0df (patch)
tree927f23ea1a943777baa0e7cf1f8070608c3847d7 /apps/plugins/dice.c
parent2fecb713ea07f06b5219a75c95909b986c2468a5 (diff)
downloadrockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.gz
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.bz2
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.zip
unify pointers to value for configfile, and add TYPE_BOOL type, used by
pictureflow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19786 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/dice.c')
-rw-r--r--apps/plugins/dice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c
index 46b39a67ae..5ef5d5099d 100644
--- a/apps/plugins/dice.c
+++ b/apps/plugins/dice.c
@@ -63,8 +63,8 @@ static int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 };
static char *sides_conf[] = {"3", "4", "6", "8", "10", "12", "20", "100" };
static struct configdata config[] =
{
- {TYPE_INT, 0, MAX_DICES, &dice.nb_dices, "dice count", NULL, NULL},
- {TYPE_ENUM, 0, 8, &sides_index, "side count", sides_conf, NULL}
+ {TYPE_INT, 0, MAX_DICES, { .int_p = &dice.nb_dices}, "dice count", NULL},
+ {TYPE_ENUM, 0, 8, { .int_p = &sides_index }, "side count", sides_conf}
};
void dice_init(struct dices* dice);