summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2006-10-19 11:33:52 -0500
committerJon Loeliger <jdl@freescale.com>2006-10-19 11:33:52 -0500
commit13a7fcdf37f6ea9429ae04c9df67f893364cfe4b (patch)
treece428464fe9a2e0bb74e024c124f9204d9cfefb4 /common
parent5f3249a0a168e446a4cc9669b2bce0bc456f0a09 (diff)
downloadu-boot-imx-13a7fcdf37f6ea9429ae04c9df67f893364cfe4b.zip
u-boot-imx-13a7fcdf37f6ea9429ae04c9df67f893364cfe4b.tar.gz
u-boot-imx-13a7fcdf37f6ea9429ae04c9df67f893364cfe4b.tar.bz2
* Fix a bunch of compiler warnings for gcc 4.0
Signed-off-by: Matthew McClintock <msm@freescale.com>
Diffstat (limited to 'common')
-rw-r--r--common/ft_build.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/ft_build.c b/common/ft_build.c
index 87883cc..980e40f 100644
--- a/common/ft_build.c
+++ b/common/ft_build.c
@@ -87,9 +87,9 @@ static int lookup_string(struct ft_cxt *cxt, const char *name)
p = cxt->p;
while (p < cxt->p_end) {
- if (strcmp(p, name) == 0)
+ if (strcmp((char *)p, name) == 0)
return p - cxt->p;
- p += strlen(p) + 1;
+ p += strlen((char *)p) + 1;
}
return -1;
@@ -143,9 +143,9 @@ void ft_init_cxt(struct ft_cxt *cxt, void *blob)
cxt->p_rsvmap += SIZE_OF_RSVMAP_ENTRY;
}
- cxt->p_start = (char*)bph + bph->off_dt_struct;
- cxt->p_end = (char *)bph + bph->totalsize;
- cxt->p = (char *)bph + bph->off_dt_strings;
+ cxt->p_start = (u8 *)bph + bph->off_dt_struct;
+ cxt->p_end = (u8 *)bph + bph->totalsize;
+ cxt->p = (u8 *)bph + bph->off_dt_strings;
}
/* add a reserver physical area to the rsvmap */