summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)++;