diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-15 07:59:13 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-15 07:59:13 +0000 |
commit | 0b0c23ff130f7445cd5cfd61bc7c8c3796d2484d (patch) | |
tree | 6b7516997ba4289ecc9d8c95c52ae8788b022065 /apps/plugins/zxbox | |
parent | 887ff33f2e288dc449eb9a69d4bbeb801f02d790 (diff) | |
download | rockbox-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/zxbox')
-rw-r--r-- | apps/plugins/zxbox/spmain.c | 24 |
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){ | |||
237 | /* options menu */ | 237 | /* options menu */ |
238 | static void options_menu(void){ | 238 | static void options_menu(void){ |
239 | static const struct opt_items no_yes[2] = { | 239 | static const struct opt_items no_yes[2] = { |
240 | { "No", NULL }, | 240 | { "No", -1 }, |
241 | { "Yes", NULL }, | 241 | { "Yes", -1 }, |
242 | }; | 242 | }; |
243 | int m; | 243 | int m; |
244 | int result; | 244 | int result; |
@@ -255,16 +255,16 @@ static void options_menu(void){ | |||
255 | { "Custom keymap", NULL }, | 255 | { "Custom keymap", NULL }, |
256 | }; | 256 | }; |
257 | static struct opt_items frameskip_items[] = { | 257 | static struct opt_items frameskip_items[] = { |
258 | { "0", NULL }, | 258 | { "0", -1 }, |
259 | { "1", NULL }, | 259 | { "1", -1 }, |
260 | { "2", NULL }, | 260 | { "2", -1 }, |
261 | { "3", NULL }, | 261 | { "3", -1 }, |
262 | { "4", NULL }, | 262 | { "4", -1 }, |
263 | { "5", NULL }, | 263 | { "5", -1 }, |
264 | { "6", NULL }, | 264 | { "6", -1 }, |
265 | { "7", NULL }, | 265 | { "7", -1 }, |
266 | { "8", NULL }, | 266 | { "8", -1 }, |
267 | { "9", NULL }, | 267 | { "9", -1 }, |
268 | }; | 268 | }; |
269 | 269 | ||
270 | 270 | ||