summaryrefslogtreecommitdiffstats
path: root/fs
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 /fs
parent954f52d605f21fa95b0cefdae70b2966d05b0d0f (diff)
downloadbarebox-c3dbf6e1d677a3a36cf69e996bc3d6e42891d3dc.tar.gz
barebox-c3dbf6e1d677a3a36cf69e996bc3d6e42891d3dc.tar.xz
remove warning
Signed-off-by: Frederic RODO <fred.rodo@gmail.com>
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)++;