summaryrefslogtreecommitdiff
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorLaurent Gregoire <laurent.gregoire@tomtom.com>2009-03-03 14:23:59 +0100
committerGerald Van Baren <vanbaren@cideas.com>2009-04-01 19:30:27 -0400
commit67b89c79e72fe86b0ea0199425d880630beb95d8 (patch)
tree018518ece0776cbc41a0d2daf8b81516b87965dc /include/libfdt.h
parent13d93f38e86818739317b0206d597265cf9e675e (diff)
downloadu-boot-67b89c79e72fe86b0ea0199425d880630beb95d8.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>
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index ce374fded1..d23d40e07b 100644
--- a/include/libfdt.h
+++ b/include/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);