1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Sevakis 2007-10-15 07:59:13 +00:00
parent 887ff33f2e
commit 0b0c23ff13
6 changed files with 87 additions and 87 deletions

View file

@ -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 },
};