summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/spmain.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-15 07:59:13 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-15 07:59:13 +0000
commit0b0c23ff130f7445cd5cfd61bc7c8c3796d2484d (patch)
tree6b7516997ba4289ecc9d8c95c52ae8788b022065 /apps/plugins/zxbox/spmain.c
parent887ff33f2e288dc449eb9a69d4bbeb801f02d790 (diff)
Fix some plugins that use NULL instead of -1 when not using a voice id in struct opt_items. Change as many '#define NULL 0' to '#define NULL ((void*)0)' as grep would find - somewehere the former is still hiding it seems. :\
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15117 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox/spmain.c')
-rw-r--r--apps/plugins/zxbox/spmain.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/zxbox/spmain.c b/apps/plugins/zxbox/spmain.c
index 3f0bc9319e..ca0fa9bc71 100644
--- a/apps/plugins/zxbox/spmain.c
+++ b/apps/plugins/zxbox/spmain.c
@@ -237,8 +237,8 @@ static void select_keymap(void){
/* options menu */
static void options_menu(void){
static const struct opt_items no_yes[2] = {
- { "No", NULL },
- { "Yes", NULL },
+ { "No", -1 },
+ { "Yes", -1 },
};
int m;
int result;
@@ -255,16 +255,16 @@ static void options_menu(void){
{ "Custom keymap", NULL },
};
static struct opt_items frameskip_items[] = {
- { "0", NULL },
- { "1", NULL },
- { "2", NULL },
- { "3", NULL },
- { "4", NULL },
- { "5", NULL },
- { "6", NULL },
- { "7", NULL },
- { "8", NULL },
- { "9", NULL },
+ { "0", -1 },
+ { "1", -1 },
+ { "2", -1 },
+ { "3", -1 },
+ { "4", -1 },
+ { "5", -1 },
+ { "6", -1 },
+ { "7", -1 },
+ { "8", -1 },
+ { "9", -1 },
};