summaryrefslogtreecommitdiff
path: root/rest/rest-xml-parser.c
diff options
context:
space:
mode:
authorRob Bradford <rob@o-hand.com>2008-09-03 14:27:30 +0100
committerRob Bradford <rob@o-hand.com>2008-09-03 14:32:13 +0100
commitf4a4a387472fafed4ee6f70f963680b6fe1ed869 (patch)
tree1fe75f18e169ac9c75018bc02c5f34b454eb4115 /rest/rest-xml-parser.c
parented31a175068aa6a5435d423a9159fcfdaaf806c3 (diff)
downloadlibrest-f4a4a387472fafed4ee6f70f963680b6fe1ed869.tar.gz
Make the hash table populate function void (Ross Burton)
Diffstat (limited to 'rest/rest-xml-parser.c')
-rw-r--r--rest/rest-xml-parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rest/rest-xml-parser.c b/rest/rest-xml-parser.c
index a307737..b6abd98 100644
--- a/rest/rest-xml-parser.c
+++ b/rest/rest-xml-parser.c
@@ -186,7 +186,7 @@ rest_xml_parser_parse_from_data (RestXmlParser *parser,
{
case XML_READER_TYPE_ELEMENT:
/* Lookup the "name" for the tag */
- name = xmlTextReaderConstLocalName (priv->reader);
+ name = (char*)xmlTextReaderConstLocalName (priv->reader);
REST_DEBUG (XML_PARSER, "Opening tag: %s", name);
/* Create our new node for this tag */
@@ -245,8 +245,8 @@ rest_xml_parser_parse_from_data (RestXmlParser *parser,
xmlTextReaderMoveToFirstAttribute (priv->reader);
do {
- attr_name = xmlTextReaderConstLocalName (priv->reader);
- attr_value = xmlTextReaderConstValue (priv->reader);
+ attr_name = (char*)xmlTextReaderConstLocalName (priv->reader);
+ attr_value = (char*)xmlTextReaderConstValue (priv->reader);
g_hash_table_insert (new_node->attrs,
g_strdup (attr_name),
g_strdup (attr_value));
@@ -275,7 +275,7 @@ rest_xml_parser_parse_from_data (RestXmlParser *parser,
}
break;
case XML_READER_TYPE_TEXT:
- cur_node->content = g_strdup (xmlTextReaderConstValue (priv->reader));
+ cur_node->content = g_strdup ((char*)xmlTextReaderConstValue (priv->reader));
REST_DEBUG (XML_PARSER, "Text content found: %s",
cur_node->content);
default: