]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_commands,mod_event_socket,mod_event_test] fix up other users of switch_event_xml...
authorStefan Knoblich <s.knoblich@axsentis.de>
Sat, 14 Aug 2010 22:39:49 +0000 (00:39 +0200)
committerStefan Knoblich <s.knoblich@axsentis.de>
Sat, 14 Aug 2010 22:39:49 +0000 (00:39 +0200)
src/mod/applications/mod_commands/mod_commands.c
src/mod/event_handlers/mod_event_socket/mod_event_socket.c
src/mod/event_handlers/mod_event_test/mod_event_test.c

index f27c2ec0eb466d5146331b2213d572d30fee766e..cc864a266b3f7ae8ac997eb094b8dd0a6c22cfc9 100644 (file)
@@ -4003,7 +4003,7 @@ SWITCH_STANDARD_API(uuid_dump_function)
                                        switch_xml_t xml;
                                        switch_channel_event_set_data(channel, event);
                                        if (!strcasecmp(format, "xml")) {
-                                               if ((xml = switch_event_xmlize(event, "%s", ""))) {
+                                               if ((xml = switch_event_xmlize(event, SWITCH_VA_NONE))) {
                                                        buf = switch_xml_toxml(xml, SWITCH_FALSE);
                                                        switch_xml_free(xml);
                                                } else {
index e6c403b658fa0b5a5273d047eed16d0bc2a55e64..3f7d680d529008c2b9b131aa4a11f5a1e613d8f7 100644 (file)
@@ -966,7 +966,7 @@ SWITCH_STANDARD_API(event_sink_function)
                                switch_xml_t xml;
                                etype = "xml";
 
-                               if ((xml = switch_event_xmlize(pevent, "%s", ""))) {
+                               if ((xml = switch_event_xmlize(pevent, SWITCH_VA_NONE))) {
                                        listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE);
                                        switch_xml_free(xml);
                                } else {
@@ -1257,7 +1257,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
                                                switch_xml_t xml;
                                                etype = "xml";
 
-                                               if ((xml = switch_event_xmlize(pevent, "%s", ""))) {
+                                               if ((xml = switch_event_xmlize(pevent, SWITCH_VA_NONE))) {
                                                        listener->ebuf = switch_xml_toxml(xml, SWITCH_FALSE);
                                                        switch_xml_free(xml);
                                                } else {
index e58adfb9f15e41fb9f7d31d38146b2ce0b680df2..ba5a2aaae405d2cc720e8f06fd3b5db92bca0eb8 100644 (file)
@@ -49,7 +49,7 @@ static void event_handler(switch_event_t *event)
                return;
        default:
                switch_event_serialize(event, &buf, SWITCH_TRUE);
-               if ((xml = switch_event_xmlize(event, NULL))) {
+               if ((xml = switch_event_xmlize(event, SWITCH_VA_NONE))) {
                        xmlstr = switch_xml_toxml(xml, SWITCH_FALSE);
                        dofree++;
                }