aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb/gaimbuddies.c
diff options
context:
space:
mode:
authorSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-05-11 18:22:26 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-05-11 18:22:26 +0800
commit730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144 (patch)
treef419fdd0d3721e2182bdbb194193669ac382fcbc /plugins/bbdb/gaimbuddies.c
parent347bdcf94d622efbdeaa687a617efa8d1480bb74 (diff)
downloadgsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.gz
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.zst
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.zip
Bug 437584 – Compilation warning in evolution's plugins folder
svn path=/trunk/; revision=33507
Diffstat (limited to 'plugins/bbdb/gaimbuddies.c')
-rw-r--r--plugins/bbdb/gaimbuddies.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c
index 2b6d6ca2f5..b00ebc5952 100644
--- a/plugins/bbdb/gaimbuddies.c
+++ b/plugins/bbdb/gaimbuddies.c
@@ -101,7 +101,7 @@ bbdb_sync_buddy_list_check (void)
/* Reprocess the buddy list if it's been updated. */
last_sync_str = gconf_client_get_string (gconf, GCONF_KEY_GAIM_LAST_SYNC, NULL);
- if (last_sync_str == NULL || ! strcmp (last_sync_str, ""))
+ if (last_sync_str == NULL || ! strcmp ((const char *)last_sync_str, ""))
last_sync = (time_t) 0;
else
last_sync = (time_t) g_ascii_strtoull (last_sync_str, NULL, 10);
@@ -314,7 +314,7 @@ bbdb_get_gaim_buddy_list (void)
}
root = xmlDocGetRootElement (buddy_xml);
- if (strcmp (root->name, "gaim")) {
+ if (strcmp ((const char *)root->name, "gaim")) {
fprintf (stderr, "bbdb: Could not parse Gaim buddy list.\n");
xmlFreeDoc (buddy_xml);
return NULL;
@@ -322,7 +322,7 @@ bbdb_get_gaim_buddy_list (void)
blist = NULL;
for (child = root->children; child != NULL; child = child->next) {
- if (! strcmp (child->name, "blist")) {
+ if (! strcmp ((const char *)child->name, "blist")) {
blist = child;
break;
}
@@ -334,7 +334,7 @@ bbdb_get_gaim_buddy_list (void)
}
for (child = blist->children; child != NULL; child = child->next) {
- if (! strcmp (child->name, "group"))
+ if (! strcmp ((const char *)child->name, "group"))
parse_buddy_group (child, &buddies);
}
@@ -365,7 +365,7 @@ static char *
get_node_text (xmlNodePtr node)
{
if (node->children == NULL || node->children->content == NULL ||
- strcmp (node->children->name, "text"))
+ strcmp ((const char *)node->children->name, "text"))
return NULL;
return g_strdup (node->children->content);
@@ -397,7 +397,7 @@ parse_contact (xmlNodePtr contact, GList **buddies)
GaimBuddy *gb;
for (child = contact->children; child != NULL; child = child->next) {
- if (! strcmp (child->name, "buddy")) {
+ if (! strcmp ((const char *)child->name, "buddy")) {
buddy = child;
break;
}
@@ -413,17 +413,17 @@ parse_contact (xmlNodePtr contact, GList **buddies)
gb->proto = e_xml_get_string_prop_by_name (buddy, "proto");
for (child = buddy->children; child != NULL; child = child->next) {
- if (! strcmp (child->name, "setting")) {
+ if (! strcmp ((const char *)child->name, "setting")) {
char *setting_type;
setting_type = e_xml_get_string_prop_by_name (child, "name");
- if (! strcmp (setting_type, "buddy_icon"))
+ if (! strcmp ((const char *)setting_type, "buddy_icon"))
gb->icon = get_buddy_icon_from_setting (child);
g_free (setting_type);
- } else if (! strcmp (child->name, "name"))
+ } else if (! strcmp ((const char *)child->name, "name"))
gb->account_name = get_node_text (child);
- else if (! strcmp (child->name, "alias"))
+ else if (! strcmp ((const char *)child->name, "alias"))
gb->alias = get_node_text (child);
}
@@ -437,7 +437,7 @@ parse_buddy_group (xmlNodePtr group, GList **buddies)
xmlNodePtr child;
for (child = group->children; child != NULL; child = child->next) {
- if (strcmp (child->name, "contact"))
+ if (strcmp ((const char *)child->name, "contact"))
continue;
parse_contact (child, buddies);