aboutsummaryrefslogtreecommitdiff
path: root/fdtdump.c
diff options
context:
space:
mode:
authorPhil Elwell <phil@raspberrypi.org>2014-10-17 23:22:11 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2014-10-24 11:45:41 +0200
commit242c2642709436ceb144f9949868ff54050c70a2 (patch)
tree4f3ee2729048bcc1fbd8081ccf05af4133975f41 /fdtdump.c
parent6a76a9d30c977c6c9cb18cf15ba3bd2c2e89db4c (diff)
downloaddtc-242c2642709436ceb144f9949868ff54050c70a2.zip
dtc-242c2642709436ceb144f9949868ff54050c70a2.tar.gz
dtc-242c2642709436ceb144f9949868ff54050c70a2.tar.bz2
Improve portability
1) Remove the double parentheses around two comparisons in checks.c. The OSX LLVM-based C compiler warns about them. 2) Put an explicit "=" in the TN() macro, in accordance with c99. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Diffstat (limited to 'fdtdump.c')
-rw-r--r--fdtdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdtdump.c b/fdtdump.c
index a29aa5e..95a6a20 100644
--- a/fdtdump.c
+++ b/fdtdump.c
@@ -22,7 +22,7 @@
static const char *tagname(uint32_t tag)
{
static const char * const names[] = {
-#define TN(t) [t] #t
+#define TN(t) [t] = #t
TN(FDT_BEGIN_NODE),
TN(FDT_END_NODE),
TN(FDT_PROP),