tests/examples/xml/createxml.c: gcc 4 fixes
authorStefan Kost <ensonic@users.sourceforge.net>
Mon, 12 Dec 2005 15:59:48 +0000 (15:59 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Mon, 12 Dec 2005 15:59:48 +0000 (15:59 +0000)
Original commit message from CVS:
* tests/examples/xml/createxml.c: (object_saved):
gcc 4 fixes

ChangeLog
tests/examples/xml/createxml.c

index 6059337..ec92600 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-12-12  Stefan Kost  <ensonic@users.sf.net>
 
+       * tests/examples/xml/createxml.c: (object_saved):
+         gcc 4 fixes
+
+2005-12-12  Stefan Kost  <ensonic@users.sf.net>
+
        * tests/Makefile.am:
          enable the examples even more
 
index d1426e2..3917c29 100644 (file)
@@ -11,16 +11,17 @@ object_saved (GstObject * object, xmlNodePtr parent, gpointer data)
 
   /* first see if the namespace is already known */
   ns = xmlSearchNsByHref (parent->doc, parent,
-      "http://gstreamer.net/gst-test/1.0/");
+      (xmlChar *) "http://gstreamer.net/gst-test/1.0/");
   if (ns == NULL) {
     xmlNodePtr root = xmlDocGetRootElement (parent->doc);
 
     /* add namespace to root node */
-    ns = xmlNewNs (root, "http://gstreamer.net/gst-test/1.0/", "test");
+    ns = xmlNewNs (root, (xmlChar *) "http://gstreamer.net/gst-test/1.0/",
+        (xmlChar *) "test");
   }
-  child = xmlNewChild (parent, ns, "comment", NULL);
+  child = xmlNewChild (parent, ns, (xmlChar *) "comment", NULL);
 
-  xmlNewChild (child, NULL, "text", (gchar *) data);
+  xmlNewChild (child, NULL, (xmlChar *) "text", (gchar *) data);
 }
 
 int