summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/Library/FdtLib/fdt_rw.c
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2014-02-12 15:11:29 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-02-12 15:11:29 +0000
commit3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7 (patch)
tree0faf3447412162142137c8d11d4479f7ca871ff9 /EmbeddedPkg/Library/FdtLib/fdt_rw.c
parente30acb47ce10ef7774dc4501860824381b2713fc (diff)
downloadedk2-3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7.tar.gz
edk2-3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7.tar.bz2
edk2-3e8576dd363fe516ceec1ddc4aff51bc5a3d4bd7.zip
EmbeddedPkg/FdtLib: Updated libfdt to 1.4.0
Last commit from git://git.jdl.com/software/dtc.git: commit 65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf Author: Jon Loeliger <jdl@jdl.com> Date: Sat Jun 22 12:54:28 2013 -0500 Tag Version 1.4.0 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15237 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg/Library/FdtLib/fdt_rw.c')
-rw-r--r--EmbeddedPkg/Library/FdtLib/fdt_rw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/EmbeddedPkg/Library/FdtLib/fdt_rw.c b/EmbeddedPkg/Library/FdtLib/fdt_rw.c
index 1d95a73ec1..7a2bcf3d07 100644
--- a/EmbeddedPkg/Library/FdtLib/fdt_rw.c
+++ b/EmbeddedPkg/Library/FdtLib/fdt_rw.c
@@ -342,7 +342,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);
@@ -369,7 +369,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;