From 07f393e96426dec1592291f68d1796ccbe6c40dd Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 8 Feb 2009 14:51:22 +0100 Subject: Fix gcc-4.4.0 compilation --- common/treepathutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/treepathutils.c') diff --git a/common/treepathutils.c b/common/treepathutils.c index 2e43f94..c8f2b18 100644 --- a/common/treepathutils.c +++ b/common/treepathutils.c @@ -191,7 +191,7 @@ unsigned long int filelist_find_index_by_path(struct PathTree *tree, const char void filelist_tree_add_item_recurr(struct PathTree *tree, const char *path, const char *original_pathstr, struct TVFSItem *item, unsigned long index) { - char *pos = strstr(path, "/"); + const char *pos = strstr(path, "/"); char *first_part; char *last_part; if (pos) { -- cgit v1.2.3