diff src/paranormal/presets.c @ 963:9549fea94794 trunk

[svn] Warning fixes from SuSe.
author chainsaw
date Tue, 17 Apr 2007 14:45:19 -0700
parents fd9c0a5871ac
children 3b034150d31e
line wrap: on
line diff
--- a/src/paranormal/presets.c	Mon Apr 16 01:35:24 2007 -0700
+++ b/src/paranormal/presets.c	Tue Apr 17 14:45:19 2007 -0700
@@ -23,7 +23,7 @@
 parse_actuator (xmlNodePtr cur, struct pn_actuator *a)
 {
   int i;
-  xmlChar *content;
+  char *content;
   struct pn_actuator *child;
 
   for (cur = cur->xmlChildrenNode; cur; cur = cur->next)
@@ -40,7 +40,7 @@
       if (a->options && a->options[i].desc)
 	{
 	  /* it is an option, so let's set it! */
-	  content = xmlNodeGetContent (cur);
+	  content = (char*)xmlNodeGetContent (cur);
 
 	  /* FIXME: warning? */
 	  if (! content)
@@ -114,11 +114,11 @@
 	    }
 
 	  /* gotta free content */
-	  xmlFree (content);
+	  xmlFree ((xmlChar*)content);
 	}
       /* See if we have a child actuator */
       else if (a->desc->flags & ACTUATOR_FLAG_CONTAINER
-	       && (child = create_actuator (cur->name)))
+	       && (child = create_actuator ((char*)cur->name)))
 	{
 	  container_add_actuator (a, child);
 	  parse_actuator (cur, child);
@@ -157,7 +157,7 @@
 
       /* if (...) { ... } else if (is_documentation [see top of file]) ... else */
       {
-	a = create_actuator (cur->name);
+	a = create_actuator ((char*)cur->name);
 
 	/* FIXME: warn? */
 	if (! a)