diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-22 17:43:30 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-22 17:43:51 +0800 |
commit | 74f0c713470d3b94b93536d6e60a9747ec923933 (patch) | |
tree | 09b97439141545c85365ab5e08cfa97c76f1b548 /libempathy | |
parent | 6e414d115637bf307d16140ca3eff8c473d4e5a6 (diff) | |
download | gsoc2013-empathy-74f0c713470d3b94b93536d6e60a9747ec923933.tar gsoc2013-empathy-74f0c713470d3b94b93536d6e60a9747ec923933.tar.gz gsoc2013-empathy-74f0c713470d3b94b93536d6e60a9747ec923933.tar.bz2 gsoc2013-empathy-74f0c713470d3b94b93536d6e60a9747ec923933.tar.lz gsoc2013-empathy-74f0c713470d3b94b93536d6e60a9747ec923933.tar.xz gsoc2013-empathy-74f0c713470d3b94b93536d6e60a9747ec923933.tar.zst gsoc2013-empathy-74f0c713470d3b94b93536d6e60a9747ec923933.zip |
empathy-utils.c: fix casting issues
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-utils.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 3b14b0028..a0cb4111e 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -135,7 +135,8 @@ gboolean empathy_xml_validate (xmlDoc *doc, const gchar *dtd_filename) { - gchar *path, *escaped; + gchar *path; + xmlChar *escaped; xmlValidCtxt cvp; xmlDtd *dtd; gboolean ret; @@ -149,7 +150,8 @@ empathy_xml_validate (xmlDoc *doc, DEBUG ("Loading dtd file %s", path); /* The list of valid chars is taken from libxml. */ - escaped = xmlURIEscapeStr (path, ":@&=+$,/?;"); + escaped = xmlURIEscapeStr ((const xmlChar *) path, + (const xmlChar *)":@&=+$,/?;"); g_free (path); memset (&cvp, 0, sizeof (cvp)); @@ -172,7 +174,7 @@ empathy_xml_node_get_child (xmlNodePtr node, g_return_val_if_fail (child_name != NULL, NULL); for (l = node->children; l; l = l->next) { - if (l->name && strcmp (l->name, child_name) == 0) { + if (l->name && strcmp ((const gchar *) l->name, child_name) == 0) { return l; } } @@ -212,12 +214,12 @@ empathy_xml_node_find_child_prop_value (xmlNodePtr node, for (l = node->children; l && !found; l = l->next) { xmlChar *prop; - if (!xmlHasProp (l, prop_name)) { + if (!xmlHasProp (l, (const xmlChar *) prop_name)) { continue; } - prop = xmlGetProp (l, prop_name); - if (prop && strcmp (prop, prop_value) == 0) { + prop = xmlGetProp (l, (const xmlChar *) prop_name); + if (prop && strcmp ((const gchar *) prop, prop_value) == 0) { found = l; } |