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

index 7f321a26d11fbd47afd966de25287072ce9c0ced..5007266055ab2e324e0df7e1cc5de30981900046 100644 (file)
@@ -156,7 +156,7 @@ map_type_mapcoord_to_center_coord (VikMapSource *self, MapCoord *src, VikCoord *
     VikMapTypePrivate *priv = VIK_MAP_TYPE_PRIVATE(self);
        g_return_if_fail (self != NULL);
 
-       return (priv->map_type.mapcoord_to_center_coord)(src, dest);
+       (priv->map_type.mapcoord_to_center_coord)(src, dest);
 }
 
 static int
@@ -181,8 +181,8 @@ static void
 map_type_download_handle_cleanup (VikMapSource * self, void * handle)
 {
     VikMapTypePrivate *priv = VIK_MAP_TYPE_PRIVATE(self);
-       g_return_val_if_fail (priv != NULL, 0);
+       g_return_if_fail ( priv != NULL );
 
-       return (priv->map_type.download_handle_cleanup)(handle);
+       (priv->map_type.download_handle_cleanup)(handle);
 }