* [PATCH] NULL: define as a null pointer
@ 2016-04-13 12:02 Du Huanpeng
0 siblings, 0 replies; only message in thread
From: Du Huanpeng @ 2016-04-13 12:02 UTC (permalink / raw)
To: barebox; +Cc: Du Huanpeng
From: Du Huanpeng <u74147@gmail.com>
ISO/IEC 9899:TC3 says:
The macros are
NULL
which expands to an implementation-defined null pointer constant;
Signed-off-by: Du Huanpeng <u74147@gmail.com>
---
include/command.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/command.h b/include/command.h
index 3aca1a9..e41068a 100644
--- a/include/command.h
+++ b/include/command.h
@@ -27,7 +27,7 @@
#include <linux/stringify.h>
#ifndef NULL
-#define NULL 0
+#define NULL ((void *)0)
#endif
#ifndef __ASSEMBLY__
--
1.9.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-13 12:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-13 12:02 [PATCH] NULL: define as a null pointer Du Huanpeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox