summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ramfs.c2
1 files changed, 1 insertions, 1 deletions
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)++;