summaryrefslogtreecommitdiff
path: root/firmware
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 /firmware
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 'firmware')
-rw-r--r--firmware/include/stdlib.h2
-rw-r--r--firmware/include/string.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/stdlib.h b/firmware/include/stdlib.h
index 0074fe65e5..1f4fb88668 100644
--- a/firmware/include/stdlib.h
+++ b/firmware/include/stdlib.h
@@ -17,7 +17,7 @@ extern "C" {
17#include <stddef.h> 17#include <stddef.h>
18 18
19#ifndef NULL 19#ifndef NULL
20#define NULL 0 20#define NULL ((void*)0)
21#endif 21#endif
22 22
23#define EXIT_FAILURE 1 23#define EXIT_FAILURE 1
diff --git a/firmware/include/string.h b/firmware/include/string.h
index 713a875698..32b86cd2b0 100644
--- a/firmware/include/string.h
+++ b/firmware/include/string.h
@@ -17,7 +17,7 @@ extern "C" {
17#include <stddef.h> 17#include <stddef.h>
18 18
19#ifndef NULL 19#ifndef NULL
20#define NULL 0 20#define NULL ((void*)0)
21#endif 21#endif
22 22
23_PTR _EXFUN(memchr,(const _PTR, int, size_t)); 23_PTR _EXFUN(memchr,(const _PTR, int, size_t));