summaryrefslogtreecommitdiffstats
path: root/src/ithumb-writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ithumb-writer.c')
-rw-r--r--src/ithumb-writer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index 111552a..e6411b9 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -291,16 +291,16 @@ ithumb_writer_free (iThumbWriter *writer)
}
+gint offset_sort (gconstpointer a, gconstpointer b);
+gint offset_sort (gconstpointer a, gconstpointer b)
+{
+ return (-(((Itdb_Thumb *)a)->offset - ((Itdb_Thumb *)b)->offset));
+}
+
static gboolean ithumb_rearrange_thumbnail_file (gpointer _key,
gpointer _thumbs,
gpointer _user_data)
{
- auto gint offset_sort (gconstpointer a, gconstpointer b);
- gint offset_sort (gconstpointer a, gconstpointer b)
- {
- return (-(((Itdb_Thumb *)a)->offset -
- ((Itdb_Thumb *)b)->offset));
- }
const gchar *filename = _key;
GList *thumbs = _thumbs;
gboolean *result = _user_data;