diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-22 01:18:38 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-22 17:43:50 +0800 |
commit | 3dcd2bd00c3120b97c3fcc93983e21a22f301020 (patch) | |
tree | a1893770847cae9aec08fdd440ec5f1bf712588c /libempathy/empathy-contact-groups.c | |
parent | 73ae73a1e6d938abf206035910f6b4de8572a8fc (diff) | |
download | gsoc2013-empathy-3dcd2bd00c3120b97c3fcc93983e21a22f301020.tar gsoc2013-empathy-3dcd2bd00c3120b97c3fcc93983e21a22f301020.tar.gz gsoc2013-empathy-3dcd2bd00c3120b97c3fcc93983e21a22f301020.tar.bz2 gsoc2013-empathy-3dcd2bd00c3120b97c3fcc93983e21a22f301020.tar.lz gsoc2013-empathy-3dcd2bd00c3120b97c3fcc93983e21a22f301020.tar.xz gsoc2013-empathy-3dcd2bd00c3120b97c3fcc93983e21a22f301020.tar.zst gsoc2013-empathy-3dcd2bd00c3120b97c3fcc93983e21a22f301020.zip |
empathy-contact-groups.c: fix casting issues
Diffstat (limited to 'libempathy/empathy-contact-groups.c')
-rw-r--r-- | libempathy/empathy-contact-groups.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libempathy/empathy-contact-groups.c b/libempathy/empathy-contact-groups.c index 22d81d051..7244c1622 100644 --- a/libempathy/empathy-contact-groups.c +++ b/libempathy/empathy-contact-groups.c @@ -131,8 +131,8 @@ contact_groups_file_parse (const gchar *filename) gboolean expanded; ContactGroup *contact_group; - name = (gchar *) xmlGetProp (node, "name"); - expanded_str = (gchar *) xmlGetProp (node, "expanded"); + name = (gchar *) xmlGetProp (node, (const xmlChar *) "name"); + expanded_str = (gchar *) xmlGetProp (node, (const xmlChar *) "expanded"); if (expanded_str && strcmp (expanded_str, "yes") == 0) { expanded = TRUE; @@ -195,12 +195,12 @@ contact_groups_file_save (void) file = g_build_filename (dir, CONTACT_GROUPS_XML_FILENAME, NULL); g_free (dir); - doc = xmlNewDoc ("1.0"); - root = xmlNewNode (NULL, "contacts"); + doc = xmlNewDoc ((const xmlChar *) "1.0"); + root = xmlNewNode (NULL, (const xmlChar *) "contacts"); xmlDocSetRootElement (doc, root); - node = xmlNewChild (root, NULL, "account", NULL); - xmlNewProp (node, "name", "Default"); + node = xmlNewChild (root, NULL, (const xmlChar *) "account", NULL); + xmlNewProp (node, (const xmlChar *) "name", (const xmlChar *) "Default"); for (l = groups; l; l = l->next) { ContactGroup *cg; @@ -208,9 +208,10 @@ contact_groups_file_save (void) cg = l->data; - subnode = xmlNewChild (node, NULL, "group", NULL); - xmlNewProp (subnode, "expanded", cg->expanded ? "yes" : "no"); - xmlNewProp (subnode, "name", cg->name); + subnode = xmlNewChild (node, NULL, (const xmlChar *) "group", NULL); + xmlNewProp (subnode, (const xmlChar *) "expanded", cg->expanded ? + (const xmlChar *) "yes" : (const xmlChar *) "no"); + xmlNewProp (subnode, (const xmlChar *) "name", (const xmlChar *) cg->name); } /* Make sure the XML is indented properly */ @@ -262,7 +263,7 @@ empathy_contact_group_set_expanded (const gchar *group, g_return_if_fail (group != NULL); for (l = groups; l; l = l->next) { - ContactGroup *cg = l->data; + cg = l->data; if (!cg || !cg->name) { continue; |