diff --git a/commands/partition.c b/commands/partition.c index 399cb62..9303987 100755 --- a/commands/partition.c +++ b/commands/partition.c @@ -134,7 +134,7 @@ 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 beee6b9..43878ca 100644 --- a/fs/ramfs.c +++ b/fs/ramfs.c @@ -109,7 +109,7 @@ pathname++; path = strdup(pathname); - if ((*file = strrchr(pathname, '/'))) { + if ((*file = strrchr((char *) pathname, '/'))) { char *tmp; (*file)++;