Fixed 'xmlChar' signedness gcc(1) warnings.
[captive.git] / src / libcaptive / sandbox / parent-Vfs.c
index a84a6d7..d260dbd 100644 (file)
@@ -64,8 +64,8 @@ GnomeVFSResult r;
        if (captive_vfs_parent_object->corba_bug_action) {
 xmlNode *xml_action;
 
-               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,"vfs_new",NULL);
-               xmlNewProp(xml_action,"object",captive_printf_alloca("%p",captive_vfs_parent_object));
+               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,BAD_CAST "vfs_new",NULL);
+               xmlNewProp(xml_action,BAD_CAST "object",BAD_CAST captive_printf_alloca("%p",captive_vfs_parent_object));
                }
 
        return r;
@@ -89,7 +89,7 @@ const gchar *xml_media_type="???";    /* Prevent: ... might be used uninitialized i
                case CAPTIVE_OPTION_MEDIA_DISK:  xml_media_type="disk";  break;
                default: g_assert_not_reached();
                }
-       xmlNewProp(xml_media,"type",xml_media_type);
+       xmlNewProp(xml_media,BAD_CAST "type",BAD_CAST xml_media_type);
 
        xmlSetDocCompressMode(captive_vfs_parent_object->corba_bug_doc,9);
 
@@ -225,8 +225,8 @@ GnomeVFSResult captive_sandbox_parent_vfs_close(CaptiveVfsParentObject *captive_
        if (captive_vfs_parent_object->corba_bug_action) {
 xmlNode *xml_action;
 
-               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,"vfs_close",NULL);
-               xmlNewProp(xml_action,"object",captive_printf_alloca("%p",captive_vfs_parent_object));
+               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,BAD_CAST "vfs_close",NULL);
+               xmlNewProp(xml_action,BAD_CAST "object",BAD_CAST captive_printf_alloca("%p",captive_vfs_parent_object));
                }
 
        return captive_sandbox_parent_vfs_close_silent(captive_vfs_parent_object);
@@ -243,8 +243,8 @@ xmlNode *xml_action=NULL;
        g_return_val_if_fail(captive_vfs_parent_object->corba_Vfs_object!=CORBA_OBJECT_NIL,GNOME_VFS_ERROR_BAD_PARAMETERS);
 
        if (captive_vfs_parent_object->corba_bug_action) {
-               xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,"vfs_commit",NULL);
-               xmlNewProp(xml_action,"object",captive_printf_alloca("%p",captive_vfs_parent_object));
+               xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,BAD_CAST "vfs_commit",NULL);
+               xmlNewProp(xml_action,BAD_CAST "object",BAD_CAST captive_printf_alloca("%p",captive_vfs_parent_object));
                }
 
        r_close=captive_vfs_parent_object_disconnect(captive_vfs_parent_object);
@@ -254,10 +254,10 @@ xmlNode *xml_action=NULL;
                r_new=GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE;
 
        if (captive_vfs_parent_object->corba_bug_action) {
-               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,"vfs_commit",NULL);
-               xmlNewProp(xml_action,"object",captive_printf_alloca("%p",captive_vfs_parent_object));
-               xmlNewProp(xml_action,"result_prev_close",gnome_vfs_result_to_string(r_close));
-               xmlNewProp(xml_action,"result",gnome_vfs_result_to_string(r_new));
+               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,BAD_CAST "vfs_commit",NULL);
+               xmlNewProp(xml_action,BAD_CAST "object",BAD_CAST captive_printf_alloca("%p",captive_vfs_parent_object));
+               xmlNewProp(xml_action,BAD_CAST "result_prev_close",BAD_CAST gnome_vfs_result_to_string(r_close));
+               xmlNewProp(xml_action,BAD_CAST "result",BAD_CAST gnome_vfs_result_to_string(r_new));
                }
 
        return (r_new!=GNOME_VFS_OK ? r_new : r_close);
@@ -275,17 +275,17 @@ GnomeVFSResult r;
        g_return_val_if_fail(volume_info_captive!=NULL,GNOME_VFS_ERROR_BAD_PARAMETERS);
 
        if (captive_vfs_parent_object->corba_bug_action) {
-               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,"vfs_volume_info_get",NULL);
-               xmlNewProp(xml_action,"object",captive_printf_alloca("%p",captive_vfs_parent_object));
+               xml_action=xmlNewTextChild(captive_vfs_parent_object->corba_bug_action,NULL,BAD_CAST "vfs_volume_info_get",NULL);
+               xmlNewProp(xml_action,BAD_CAST "object",BAD_CAST captive_printf_alloca("%p",captive_vfs_parent_object));
                }
 
        Captive_Vfs_volume_info_get(captive_vfs_parent_object->corba_Vfs_object,&volume_info_corba,&captive_corba_ev);
        if (xml_action)
-               xmlNewProp(xml_action,"result",(captive_corba_ev._major==CORBA_NO_EXCEPTION ? "1" : "0"));
+               xmlNewProp(xml_action,BAD_CAST "result",BAD_CAST (captive_corba_ev._major==CORBA_NO_EXCEPTION ? "1" : "0"));
 
        r=captive_sandbox_parent_return_from_CORBA_Environment(&captive_corba_ev,captive_vfs_parent_object);
        if (xml_action)
-               xmlSetProp(xml_action,"result",gnome_vfs_result_to_string(r));
+               xmlSetProp(xml_action,BAD_CAST "result",BAD_CAST gnome_vfs_result_to_string(r));
        if (r!=GNOME_VFS_OK)
                return r;