From 0b0c23ff130f7445cd5cfd61bc7c8c3796d2484d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 15 Oct 2007 07:59:13 +0000 Subject: 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 --- apps/plugins/zxbox/spmain.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'apps/plugins/zxbox') 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 }, }; -- cgit v1.2.3