evolution-rss r392 - in trunk: . src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r392 - in trunk: . src
- Date: Tue, 14 Oct 2008 14:23:58 +0000 (UTC)
Author: lucilanga
Date: Tue Oct 14 14:23:58 2008
New Revision: 392
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=392&view=rev
Log:
2008-10-14 Lucian Langa <lucilanga gnome org>
* src/rss.c, src/parser.c: misc cleanups
Modified:
trunk/ChangeLog
trunk/src/dbus.c
trunk/src/parser.c
trunk/src/rss.c
Modified: trunk/src/dbus.c
==============================================================================
--- trunk/src/dbus.c (original)
+++ trunk/src/dbus.c Tue Oct 14 14:23:58 2008
@@ -103,7 +103,7 @@
gchar *text = feed->feed_url;
feed->feed_url = sanitize_url(feed->feed_url);
g_free(text);
- g_print("feed URL: %s\n", feed->feed_url);
+ d(g_print("sanitized feed URL: %s\n", feed->feed_url));
if (g_hash_table_find(rf->hr,
check_if_match,
feed->feed_url))
@@ -137,11 +137,11 @@
return DBUS_HANDLER_RESULT_HANDLED;
}
else if (dbus_message_is_signal (message, DBUS_INTERFACE, "ping")) {
- g_print("!!!PING!!!\n");
gchar *data = g_strdup("PONG");
DBusMessage *reply;
- fprintf(stderr, "Ping received from %s\n",
- dbus_message_get_sender(message));
+ fprintf(stderr, "!!Ping!! received from %s\n",
+ dbus_message_get_sender(message));
+ fprintf(stderr, "Sending !!Pong!! back\n");
reply = dbus_message_new_signal (DBUS_PATH, DBUS_REPLY_INTERFACE, "pong");
// dbus_message_set_reply_serial(reply,
// dbus_message_get_serial(message));
Modified: trunk/src/parser.c
==============================================================================
--- trunk/src/parser.c (original)
+++ trunk/src/parser.c Tue Oct 14 14:23:58 2008
@@ -155,7 +155,7 @@
}
xmlDoc *
-parse_html_sux (const char *buf, int len)
+parse_html_sux (const char *buf, guint len)
{
xmlDoc *doc;
#if LIBXML_VERSION > 20600
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Tue Oct 14 14:23:58 2008
@@ -1828,10 +1828,10 @@
}
gchar *
-search_rss(gchar *buffer, guint len)
+search_rss(char *buffer, int len)
{
gchar *app;
- xmlNode *doc = parse_html_sux (buffer, len);
+ xmlNode *doc = (xmlNode *)parse_html_sux (buffer, len);
while (doc) {
doc = html_find(doc, "link");
app = xmlGetProp(doc, "type");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]