diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-17 22:53:12 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-17 22:53:12 +0000 |
commit | 0b41f0599f62ec9099197bbe6f4dd7144cebe0df (patch) | |
tree | 927f23ea1a943777baa0e7cf1f8070608c3847d7 /apps/plugins/dice.c | |
parent | 2fecb713ea07f06b5219a75c95909b986c2468a5 (diff) | |
download | rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.gz 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.c | 4 |
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 }; | |||
63 | static char *sides_conf[] = {"3", "4", "6", "8", "10", "12", "20", "100" }; | 63 | static char *sides_conf[] = {"3", "4", "6", "8", "10", "12", "20", "100" }; |
64 | static struct configdata config[] = | 64 | static struct configdata config[] = |
65 | { | 65 | { |
66 | {TYPE_INT, 0, MAX_DICES, &dice.nb_dices, "dice count", NULL, NULL}, | 66 | {TYPE_INT, 0, MAX_DICES, { .int_p = &dice.nb_dices}, "dice count", NULL}, |
67 | {TYPE_ENUM, 0, 8, &sides_index, "side count", sides_conf, NULL} | 67 | {TYPE_ENUM, 0, 8, { .int_p = &sides_index }, "side count", sides_conf} |
68 | }; | 68 | }; |
69 | 69 | ||
70 | void dice_init(struct dices* dice); | 70 | void dice_init(struct dices* dice); |