2005-09-14 [paul] 1.9.14cvs26
[claws.git] / src / common / template.c
index 7677f764abd07f2884a77e6a79521f1dabc4a913..bbacc49830c2472213ff52bc080965543a916e3b 100644 (file)
@@ -109,15 +109,16 @@ void template_clear_config(GSList *tmpl_list)
        g_slist_free(tmpl_list);
 }
 
-int tmpl_compare(Template *tmpl1, Template *tmpl2)
+gint tmpl_compare(gconstpointer tmpl1, gconstpointer tmpl2)
 {
-       if (tmpl1 == NULL || tmpl2 == NULL)
+       if ((Template *)tmpl1 == NULL || (Template *)tmpl2 == NULL)
                return 0;
 
-       if (tmpl1->name == NULL || tmpl2->name == NULL)
+       if (((Template *)tmpl1)->name == NULL || ((Template *)tmpl2)->name == NULL)
                return 0;
 
-       return strcmp(tmpl1->name, tmpl2->name);
+       return (gint) strcmp((char *)((Template *)tmpl1)->name, 
+                            (char *)((Template *)tmpl2)->name);
 }
 
 GSList *template_read_config(void)