From: Du Huanpeng <d-hp@163.com>
To: barebox@lists.infradead.org
Cc: Du Huanpeng <u74147@gmail.com>
Subject: [PATCH] NULL: define as a null pointer
Date: Wed, 13 Apr 2016 20:02:06 +0800 [thread overview]
Message-ID: <1460548926-10462-1-git-send-email-d-hp@163.com> (raw)
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
reply other threads:[~2016-04-13 12:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460548926-10462-1-git-send-email-d-hp@163.com \
--to=d-hp@163.com \
--cc=barebox@lists.infradead.org \
--cc=u74147@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox