Wrap file I/O to claws_* to benefit from custom locking when
[claws.git] / src / plugins / rssyl / rssyl_deleted.c
index 11e2ed1f9749c159298706c7fc2bbfdb110dc7a5..c8c6395fd0a5226fd4ba43970e18d9937a6cf6a0 100644 (file)
@@ -181,7 +181,7 @@ static void rssyl_deleted_store_internal(GSList *deleted_items, const gchar *del
        if (g_slist_length(deleted_items) == 0)
                return;
 
-       if ((f = g_fopen(deleted_file, "w")) == NULL) {
+       if ((f = claws_fopen(deleted_file, "w")) == NULL) {
                debug_print("RSSyl: Couldn't open '%s', bailing out.\n", deleted_file);
                return;
        }
@@ -189,7 +189,7 @@ static void rssyl_deleted_store_internal(GSList *deleted_items, const gchar *del
        g_slist_foreach(deleted_items, (GFunc)_store_one_deleted_item,
                        (gpointer)f);
 
-       safe_fclose(f);
+       claws_safe_fclose(f);
        debug_print("RSSyl: written and closed deletion file\n");
 }