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/reversi/reversi-gui.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/plugins/reversi/reversi-gui.c') diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c index f99f616668..6bfa4ae1af 100644 --- a/apps/plugins/reversi/reversi-gui.c +++ b/apps/plugins/reversi/reversi-gui.c @@ -322,9 +322,9 @@ static void reversi_gui_display_board(void) { /* Menu entries and the corresponding values for cursor wrap mode */ #define MENU_TEXT_WRAP_MODE "Cursor wrap mode" static const struct opt_items cursor_wrap_mode_settings[] = { - { "Flat board", NULL }, - { "Sphere", NULL }, - { "Torus", NULL }, + { "Flat board", -1 }, + { "Sphere", -1 }, + { "Torus", -1 }, }; static const cursor_wrap_mode_t cursor_wrap_mode_values[3] = { WRAP_FLAT, WRAP_SPHERE, WRAP_TORUS }; @@ -335,10 +335,10 @@ static const cursor_wrap_mode_t cursor_wrap_mode_values[3] = { #define MENU_TEXT_STRAT_BLACK "Strategy for black" static struct opt_items strategy_settings[] = { - { "Human", NULL }, - { "Naive robot", NULL }, - { "Simple robot", NULL }, - //{ "AB robot", NULL }, + { "Human", -1 }, + { "Naive robot", -1 }, + { "Simple robot", -1 }, + //{ "AB robot", -1 }, }; static const game_strategy_t * const strategy_values[] = { &strategy_human, &strategy_naive, &strategy_simple, /*&strategy_ab*/ }; -- cgit v1.2.3