aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Gregoire <laurent.gregoire@tomtom.com>2009-03-03 14:23:59 +0100
committerJon Loeliger <jdl@example.com>2009-03-04 08:10:53 -0600
commitf281f526d4f039f4c3236176abe6396da4a443fe (patch)
tree1a76450c19328a290b7a2651eb0d2673a7c36755
parent804fed8dcdb44fe83fcfc2e310c09d45c7602d9d (diff)
downloaddtc-f281f526d4f039f4c3236176abe6396da4a443fe.tar.gz
libfdt: Fix C++ compile-time cast error on gnu 4.2.1
Allow the inclusion of libfdt.h in C++ source. Signed-off-by: Laurent Gregoire <laurent.gregoire@tomtom.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--libfdt/libfdt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h
index 4a95e11..18de52b 100644
--- a/libfdt/libfdt.h
+++ b/libfdt/libfdt.h
@@ -156,7 +156,7 @@ int fdt_next_node(const void *fdt, int offset, int *depth);
#define __fdt_set_hdr(name) \
static inline void fdt_set_##name(void *fdt, uint32_t val) \
{ \
- struct fdt_header *fdth = fdt; \
+ struct fdt_header *fdth = (struct fdt_header*)fdt; \
fdth->name = cpu_to_fdt32(val); \
}
__fdt_set_hdr(magic);