summaryrefslogtreecommitdiff
path: root/libfdt
diff options
context:
space:
mode:
authorEmil Medve <Emilian.Medve@Freescale.com>2009-02-23 10:43:36 -0600
committerGerald Van Baren <vanbaren@cideas.com>2009-04-01 19:29:39 -0400
commit13d93f38e86818739317b0206d597265cf9e675e (patch)
tree7f136fef0434a7d1deb9f83df9a1c2fb901f97d8 /libfdt
parenta22d9cfbb5bcfb3dc6ffd64d391b568e8a0ce383 (diff)
downloadu-boot-imx-13d93f38e86818739317b0206d597265cf9e675e.zip
u-boot-imx-13d93f38e86818739317b0206d597265cf9e675e.tar.gz
u-boot-imx-13d93f38e86818739317b0206d597265cf9e675e.tar.bz2
Fix a possible overflow case detected by gcc 4.3.2
.../dtc/libfdt/fdt_sw.c: In function 'fdt_end_node': .../dtc/libfdt/fdt_sw.c:81: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Diffstat (limited to 'libfdt')
-rw-r--r--libfdt/fdt_sw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdt/fdt_sw.c b/libfdt/fdt_sw.c
index 2380b27..55ebebf 100644
--- a/libfdt/fdt_sw.c
+++ b/libfdt/fdt_sw.c
@@ -70,7 +70,7 @@ static int _fdt_sw_check_header(void *fdt)
return err; \
}
-static void *_fdt_grab_space(void *fdt, int len)
+static void *_fdt_grab_space(void *fdt, size_t len)
{
int offset = fdt_size_dt_struct(fdt);
int spaceleft;