]> Pileus Git - grits/blobdiff - src/objects/gis-tile.c
Debugging and memory checking
[grits] / src / objects / gis-tile.c
index cf3f85777743042923693282ada0e6d9d9dc3b96..2fe720285fa3b2ed76356b98399c73c5ced05bfe 100644 (file)
  */
 
 #include <config.h>
-#include <glib.h>
-
-#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)