summaryrefslogtreecommitdiff
path: root/apps/plugins/reversi/reversi-gui.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/reversi/reversi-gui.c
parent887ff33f2e288dc449eb9a69d4bbeb801f02d790 (diff)
downloadrockbox-0b0c23ff130f7445cd5cfd61bc7c8c3796d2484d.tar.gz
rockbox-0b0c23ff130f7445cd5cfd61bc7c8c3796d2484d.zip
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/reversi/reversi-gui.c')
-rw-r--r--apps/plugins/reversi/reversi-gui.c14
1 files changed, 7 insertions, 7 deletions
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) {
322/* Menu entries and the corresponding values for cursor wrap mode */ 322/* Menu entries and the corresponding values for cursor wrap mode */
323#define MENU_TEXT_WRAP_MODE "Cursor wrap mode" 323#define MENU_TEXT_WRAP_MODE "Cursor wrap mode"
324static const struct opt_items cursor_wrap_mode_settings[] = { 324static const struct opt_items cursor_wrap_mode_settings[] = {
325 { "Flat board", NULL }, 325 { "Flat board", -1 },
326 { "Sphere", NULL }, 326 { "Sphere", -1 },
327 { "Torus", NULL }, 327 { "Torus", -1 },
328}; 328};
329static const cursor_wrap_mode_t cursor_wrap_mode_values[3] = { 329static const cursor_wrap_mode_t cursor_wrap_mode_values[3] = {
330 WRAP_FLAT, WRAP_SPHERE, WRAP_TORUS }; 330 WRAP_FLAT, WRAP_SPHERE, WRAP_TORUS };
@@ -335,10 +335,10 @@ static const cursor_wrap_mode_t cursor_wrap_mode_values[3] = {
335#define MENU_TEXT_STRAT_BLACK "Strategy for black" 335#define MENU_TEXT_STRAT_BLACK "Strategy for black"
336 336
337static struct opt_items strategy_settings[] = { 337static struct opt_items strategy_settings[] = {
338 { "Human", NULL }, 338 { "Human", -1 },
339 { "Naive robot", NULL }, 339 { "Naive robot", -1 },
340 { "Simple robot", NULL }, 340 { "Simple robot", -1 },
341 //{ "AB robot", NULL }, 341 //{ "AB robot", -1 },
342}; 342};
343static const game_strategy_t * const strategy_values[] = { 343static const game_strategy_t * const strategy_values[] = {
344 &strategy_human, &strategy_naive, &strategy_simple, /*&strategy_ab*/ }; 344 &strategy_human, &strategy_naive, &strategy_simple, /*&strategy_ab*/ };