[evolution-rss] remove old feeds from status file



commit 73f61e6574cdf90ca5807246f48895fcece25af2
Author: Lucian Langa <lucilanga gnome org>
Date:   Sun May 2 21:46:57 2010 +0300

    remove old feeds from status file

 src/misc.c |    3 +--
 src/rss.c  |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 74d1d44..6d6424a 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -544,7 +544,7 @@ feed_remove_status_line(gchar *file_name, gchar *needle)
 	gchar *tmpneedle, *port, *tp;
 	gchar *tmp = e_mktemp("evo-rss-XXXXXX");
 	if (tmp) {
-		fw = fopen(tmp, "wb");
+		fw = fopen(tmp, "w+");
 		if (!fw)
 			return;
 	}
@@ -573,7 +573,6 @@ feed_remove_status_line(gchar *file_name, gchar *needle)
 		g_rename(tmp, file_name);
 	}
 	g_free(tmpneedle);
-	return occ;
 }
 
 //check if feed already exists in feed file
diff --git a/src/rss.c b/src/rss.c
index 5d7148d..d8250bc 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -6948,7 +6948,7 @@ get_feed_age(RDF *r, gpointer name)
 					g_free(feed_dir);
 					feed_remove_status_line(
 						feed_name,
-						g_hash_table_lookup(rf->hr, key));
+						feedid);
 					g_free(feed_name);
 				}
 				camel_folder_free_message_info(folder, info);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]