]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix compiler warning in file.c
authorRob Norris <rw_norris@hotmail.com>
Wed, 15 Sep 2010 22:00:51 +0000 (23:00 +0100)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Sat, 18 Sep 2010 14:08:31 +0000 (16:08 +0200)
Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
src/file.c

index f93f5efcfbe7e6aa0735f4639c57ba3dcfd7dca4..b9ec6a7c7254618fa7d94950437f1d0009c6197f 100644 (file)
@@ -553,7 +553,7 @@ static void xfclose ( FILE *f )
 /* 0 on failure, 1 on success (vik file) 2 on success (other file) */
 gshort a_file_load ( VikAggregateLayer *top, VikViewport *vp, const gchar *filename_or_uri )
 {
-  char *filename = filename_or_uri;
+  char *filename = (char *)filename_or_uri;
   if (strncmp(filename, "file://", 7) == 0)
     filename = filename + 7;