Fixed 'xmlChar' signedness gcc(1) warnings.
[captive.git] / src / libcaptive / client / libxml.c
index 8d3df52..5203650 100644 (file)
@@ -54,14 +54,14 @@ static void captive_libxml_string_drop_hook_func(const xmlChar *xml_string /* da
        xmlFree((xmlChar *)xml_string);
 }
 
-const xmlChar *captive_libxml_string_drop(struct captive_libxml_string_drop_stack **drop_stackp,const xmlChar *xml_string)
+G_CONST_RETURN gchar *captive_libxml_string_drop(struct captive_libxml_string_drop_stack **drop_stackp,const xmlChar *xml_string)
 {
 GHook *g_hook;
 
        g_return_val_if_fail(drop_stackp!=NULL,NULL);
 
        if (!xml_string)
-               return xml_string;
+               return NULL;
 
        if (!*drop_stackp) {
                captive_new(*drop_stackp);
@@ -73,7 +73,7 @@ GHook *g_hook;
        g_hook->data=(xmlChar *)xml_string;
        g_hook_append(&(*drop_stackp)->g_hook_list,g_hook);
 
-       return xml_string;
+       return (const gchar *)xml_string;
 }