Few fixes to compatibility with glib 2.28
authorTomas Mlcoch <xtojaj@gmail.com>
Thu, 20 Feb 2014 11:22:21 +0000 (06:22 -0500)
committerTomas Mlcoch <xtojaj@gmail.com>
Thu, 20 Feb 2014 11:22:21 +0000 (06:22 -0500)
src/helpers.c
src/modifyrepo_c.c
src/modifyrepo_shared.c

index d760131..dc01541 100644 (file)
@@ -306,7 +306,7 @@ cr_remove_metadata_classic(const char *repopath, int retain, GError **err)
 
 cleanup:
 
-    g_slist_free_full(blacklist, g_free);
+    cr_slist_free_full(blacklist, g_free);
     g_free(full_repopath);
     if (dirp)
         g_dir_close(dirp);
@@ -399,7 +399,7 @@ cr_old_metadata_retention(const char *old_repo,
 exit:
 
     // Cleanup
-    g_slist_free_full(blacklist, g_free);
+    cr_slist_free_full(blacklist, g_free);
     if (dirp)
         g_dir_close(dirp);
 
index d4f321c..7e8c384 100644 (file)
@@ -316,7 +316,7 @@ main(int argc, char **argv)
     // Process the tasks
 
     ret = cr_modifyrepo(modifyrepotasks, repodatadir, &err);
-    g_slist_free_full(modifyrepotasks, (GDestroyNotify)cr_modifyrepotask_free);
+    cr_slist_free_full(modifyrepotasks, (GDestroyNotify)cr_modifyrepotask_free);
 
     if (!ret) {
         g_printerr("%s\n", err->message);
index a6dd7fa..ea883cd 100644 (file)
@@ -349,7 +349,7 @@ cr_modifyrepo(GSList *modifyrepotasks, gchar *repopath, GError **err)
             g_warning("Cannot remove \"%s\": %s", realpath, strerror(errno));
         g_free(realpath);
     }
-    g_slist_free_full(recordstoremove, (GDestroyNotify)cr_repomd_record_free);
+    cr_slist_free_full(recordstoremove, (GDestroyNotify)cr_repomd_record_free);
 
     cr_repomd_free(repomd);
 
@@ -429,7 +429,7 @@ cr_modifyrepo_parse_batchfile(const gchar *path,
     if (success) {
         *modifyrepotasks = g_slist_concat(*modifyrepotasks, tasks);
     } else {
-        g_slist_free_full(tasks, (GDestroyNotify)cr_modifyrepotask_free);
+        cr_slist_free_full(tasks, (GDestroyNotify)cr_modifyrepotask_free);
     }
 
     g_key_file_free(keyfile);