X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fobjects%2Fgis-tile.c;h=2fe720285fa3b2ed76356b98399c73c5ced05bfe;hp=cf3f85777743042923693282ada0e6d9d9dc3b96;hb=d2fbd2408edd0a39253b2c30f98dcafefcef508f;hpb=1edd074095d135767d28f4d30de41bdd0af1a1fb diff --git a/src/objects/gis-tile.c b/src/objects/gis-tile.c index cf3f857..2fe7202 100644 --- a/src/objects/gis-tile.c +++ b/src/objects/gis-tile.c @@ -16,10 +16,8 @@ */ #include -#include - -#include "gis-tile.h" #include "gis-util.h" +#include "gis-tile.h" gchar *gis_tile_path_table[2][2] = { {"00.", "01."}, @@ -49,8 +47,8 @@ gchar *gis_tile_get_path(GisTile *child) if (parent->children[x][y] == child) parts = g_list_prepend(parts, gis_tile_path_table[x][y]); GString *path = g_string_new(""); - for (; parts; parts = parts->next) - g_string_append(path, parts->data); + for (GList *cur = parts; cur; cur = cur->next) + g_string_append(path, cur->data); g_list_free(parts); return g_string_free(path, FALSE); } @@ -181,6 +179,7 @@ GisTile *gis_tile_gc(GisTile *self, time_t atime, return self; } +/* Use GObject for this */ void gis_tile_free(GisTile *self, GisTileFreeFunc free_func, gpointer user_data) { if (!self)