diff Plugins/Visualization/paranormal/pn/pncontainer.c @ 1591:02841f72b897 trunk

[svn] Cast variable to proper type before passing it into libxml2. Include necessary header to make this possible. Resolves 35 pointer signedness warnings on PPC.
author chainsaw
date Thu, 24 Aug 2006 11:40:00 -0700
parents 8b57cc165216
children 752949e9aec4
line wrap: on
line diff
--- a/Plugins/Visualization/paranormal/pn/pncontainer.c	Thu Aug 24 11:11:30 2006 -0700
+++ b/Plugins/Visualization/paranormal/pn/pncontainer.c	Thu Aug 24 11:40:00 2006 -0700
@@ -134,13 +134,13 @@
 
   container = (PnContainer *) user_object;
 
-  actuators_node = xmlNewChild (node, NULL, "Actuators", NULL);
+  actuators_node = xmlNewChild (node, NULL, (xmlChar *) "Actuators", NULL);
 
   /* Save the actuators */
   for (i=0; i<container->actuators->len; i++)
     {
       actuator = g_array_index (container->actuators, PnActuator *, i);
-      actuator_node = xmlNewChild (actuators_node, NULL, "BUG", NULL);
+      actuator_node = xmlNewChild (actuators_node, NULL, (xmlChar *) "BUG", NULL);
       pn_user_object_save_thyself (PN_USER_OBJECT (actuator), actuator_node);
     }