summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfredo <fredo@srv-devhard.ad.til-technologies.net>2008-12-08 11:08:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-12-18 14:20:08 +0100
commitc3dbf6e1d677a3a36cf69e996bc3d6e42891d3dc (patch)
treed99c8b02f9067ef23a5d02a5bc3e2747ec9240ac
parent954f52d605f21fa95b0cefdae70b2966d05b0d0f (diff)
downloadbarebox-c3dbf6e1d677a3a36cf69e996bc3d6e42891d3dc.tar.gz
barebox-c3dbf6e1d677a3a36cf69e996bc3d6e42891d3dc.tar.xz
remove warning
Signed-off-by: Frederic RODO <fred.rodo@gmail.com>
-rwxr-xr-xcommands/partition.c2
-rw-r--r--fs/ramfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/partition.c b/commands/partition.c
index 399cb62005..9303987f2a 100755
--- a/commands/partition.c
+++ b/commands/partition.c
@@ -134,7 +134,7 @@ static int mtd_part_do_parse_one(struct partition *part, const char *partstr,
if (*partstr == '(') {
partstr++;
- end = strchr(partstr, ')');
+ end = strchr((char *) partstr, ')');
if (!end) {
printf("could not find matching ')'\n");
return -EINVAL;
diff --git a/fs/ramfs.c b/fs/ramfs.c
index beee6b9256..43878ca808 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -109,7 +109,7 @@ static struct ramfs_inode* rlookup_parent(struct ramfs_priv *priv, const char *p
pathname++;
path = strdup(pathname);
- if ((*file = strrchr(pathname, '/'))) {
+ if ((*file = strrchr((char *) pathname, '/'))) {
char *tmp;
(*file)++;