aboutsummaryrefslogtreecommitdiffstats
path: root/libfdt/fdt_rw.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2014-01-27 06:20:36 +0000
committerWarner Losh <imp@FreeBSD.org>2014-01-27 06:20:36 +0000
commit939bdb9f6a0dad490702c3009bb8714579e1e765 (patch)
tree4405597d1484d0e28336fa7f4f113d502f37469f /libfdt/fdt_rw.c
parentab1c86b34d2455fbd8cf2a9a404b0d7fd4ad28b1 (diff)
downloadsrc-939bdb9f6a0dad490702c3009bb8714579e1e765.tar.gz
src-939bdb9f6a0dad490702c3009bb8714579e1e765.zip
Import dtc git at 6a15eb2350426d285130e4c9d84c0bdb6575547a (last rev before bison became required)
Notes
Notes: svn path=/vendor/dtc/dist/; revision=261202
Diffstat (limited to 'libfdt/fdt_rw.c')
-rw-r--r--libfdt/fdt_rw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfdt/fdt_rw.c b/libfdt/fdt_rw.c
index 24437dfc32b8..fdba618f12ae 100644
--- a/libfdt/fdt_rw.c
+++ b/libfdt/fdt_rw.c
@@ -339,7 +339,7 @@ int fdt_add_subnode_namelen(void *fdt, int parentoffset,
int nodelen;
int err;
uint32_t tag;
- uint32_t *endtag;
+ fdt32_t *endtag;
FDT_RW_CHECK_HEADER(fdt);
@@ -366,7 +366,7 @@ int fdt_add_subnode_namelen(void *fdt, int parentoffset,
nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE);
memset(nh->name, 0, FDT_TAGALIGN(namelen+1));
memcpy(nh->name, name, namelen);
- endtag = (uint32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
+ endtag = (fdt32_t *)((char *)nh + nodelen - FDT_TAGSIZE);
*endtag = cpu_to_fdt32(FDT_END_NODE);
return offset;