From c67dbe5debccf5701e29efc41f6999e238f55738 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 12 Dec 2005 16:20:47 +0000 Subject: [PATCH] more gcc 4 warning fixes Original commit message from CVS: more gcc 4 warning fixes --- tests/examples/xml/runxml.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/examples/xml/runxml.c b/tests/examples/xml/runxml.c index 3f63d1a7af..cbc0d85382 100644 --- a/tests/examples/xml/runxml.c +++ b/tests/examples/xml/runxml.c @@ -10,12 +10,12 @@ xml_loaded (GstXML * xml, GstObject * object, xmlNodePtr self, gpointer data) xmlNodePtr children = self->xmlChildrenNode; while (children) { - if (!strcmp (children->name, "comment")) { + if (!strcmp (children->name, (xmlChar *) "comment")) { xmlNodePtr nodes = children->xmlChildrenNode; while (nodes) { - if (!strcmp (nodes->name, "text")) { - gchar *name = g_strdup (xmlNodeGetContent (nodes)); + if (!strcmp (nodes->name, (xmlChar *) "text")) { + gchar *name = g_strdup ((gchar *) xmlNodeGetContent (nodes)); g_print ("object %s loaded with comment '%s'\n", gst_object_get_name (object), name); @@ -82,10 +82,10 @@ main (int argc, char *argv[]) /* g_signal_connect (G_OBJECT (xml), "object_loaded", */ /* G_CALLBACK (xml_loaded), xml); */ - ret = gst_xml_parse_file (xml, argv[1], NULL); + ret = gst_xml_parse_file (xml, (xmlChar *) argv[1], NULL); g_assert (ret == TRUE); - bin = gst_xml_get_element (xml, "pipeline"); + bin = gst_xml_get_element (xml, (xmlChar *) "pipeline"); g_assert (bin != NULL); /* start playing */