diff libgaim/xmlnode.c @ 14628:58202142e9ad

[gaim-migrate @ 17369] This is what we decided to do about the signedness warnings, right? committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 26 Sep 2006 21:37:37 +0000
parents 289490ee84d1
children c6978ee9ac4d
line wrap: on
line diff
--- a/libgaim/xmlnode.c	Tue Sep 26 20:07:02 2006 +0000
+++ b/libgaim/xmlnode.c	Tue Sep 26 21:37:37 2006 +0000
@@ -386,11 +386,11 @@
 		return;
 	} else {
 		if(xpd->current)
-			node = xmlnode_new_child(xpd->current, element_name);
+			node = xmlnode_new_child(xpd->current, (const char*) element_name);
 		else
-			node = xmlnode_new(element_name);
+			node = xmlnode_new((const char *) element_name);
 
-		xmlnode_set_namespace(node, namespace);
+		xmlnode_set_namespace(node, (const char *) namespace);
 
 		for(i=0; i < nb_attributes * 5; i+=5) {
 			char *txt;
@@ -401,7 +401,7 @@
 			txt = attrib;
 			attrib = gaim_unescape_html(txt);
 			g_free(txt);
-			xmlnode_set_attrib(node, attributes[i], attrib);
+			xmlnode_set_attrib(node, (const char*) attributes[i], attrib);
 			g_free(attrib);
 		}
 
@@ -419,7 +419,7 @@
 		return;
 
 	if(xpd->current->parent) {
-		if(!strcmp(xpd->current->name, element_name))
+		if(!xmlStrcmp((xmlChar*) xpd->current->name, element_name))
 			xpd->current = xpd->current->parent;
 	}
 }
@@ -435,7 +435,7 @@
 	if(!text || !text_len)
 		return;
 
-	xmlnode_insert_data(xpd->current, text, text_len);
+	xmlnode_insert_data(xpd->current, (const char*) text, text_len);
 }
 
 static xmlSAXHandler xmlnode_parser_libxml = {