From 63dfd050e8c08057634d4f7e2c83fc0692664bf1 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 13 Aug 2007 15:56:44 +0000 Subject: Fix compile warnings. 2007-08-13 Ross Burton * libedata-cal/e-cal-backend-cache.c: * backends/weather/e-weather-source-ccf.c: * libecal/e-cal-component.c: Fix compile warnings. svn path=/trunk/; revision=7947 --- calendar/backends/weather/e-weather-source-ccf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'calendar/backends/weather') diff --git a/calendar/backends/weather/e-weather-source-ccf.c b/calendar/backends/weather/e-weather-source-ccf.c index a5c775a2b..7b35a20f6 100644 --- a/calendar/backends/weather/e-weather-source-ccf.c +++ b/calendar/backends/weather/e-weather-source-ccf.c @@ -63,19 +63,19 @@ parse_for_url (char *code, char *name, xmlNode *parent) { xmlNode *child; if (parent->type == XML_ELEMENT_NODE) { - if (strcmp (parent->name, "location") == 0) { + if (strcmp ((char*)parent->name, "location") == 0) { child = parent->children; g_assert (child->type == XML_TEXT_NODE); - if (strcmp (child->content, name) == 0) { + if (strcmp ((char*)child->content, name) == 0) { xmlAttr *attr; gchar *url = NULL; for (attr = parent->properties; attr; attr = attr->next) { - if (strcmp (attr->name, "code") == 0) { - if (strcmp (attr->children->content, code) != 0) + if (strcmp ((char*)attr->name, "code") == 0) { + if (strcmp ((char*)attr->children->content, code) != 0) return NULL; } - if (strcmp (attr->name, "url") == 0) - url = attr->children->content; + if (strcmp ((char*)attr->name, "url") == 0) + url = (char*)attr->children->content; } return g_strdup (url); } -- cgit v1.2.1