[Freeswitch-svn] [commit] r9382 - in freeswitch/trunk/src: include mod/languages/mod_yaml
Freeswitch SVN
mikej at freeswitch.org
Thu Aug 28 14:23:18 EDT 2008
Author: mikej
Date: Thu Aug 28 14:23:17 2008
New Revision: 9382
Modified:
freeswitch/trunk/src/include/switch_xml.h
freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c
Log:
fix mod_yaml build on newer gcc
Modified: freeswitch/trunk/src/include/switch_xml.h
==============================================================================
--- freeswitch/trunk/src/include/switch_xml.h (original)
+++ freeswitch/trunk/src/include/switch_xml.h Thu Aug 28 14:23:17 2008
@@ -276,6 +276,9 @@
#define switch_xml_set_attr_d(xml, name, value) \
switch_xml_set_attr(switch_xml_set_flag(xml, SWITCH_XML_DUP), strdup(name), strdup(switch_str_nil(value)))
+#define switch_xml_set_attr_d_buf(xml, name, value) \
+ switch_xml_set_attr(switch_xml_set_flag(xml, SWITCH_XML_DUP), strdup(name), strdup(value))
+
///\brief sets a flag for the given tag and returns the tag
///\param xml the xml node
///\param flag the flag to set
Modified: freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c Thu Aug 28 14:23:17 2008
@@ -154,7 +154,7 @@
} else {
switch_set_string(value, scalar_data);
param = switch_xml_add_child_d(current, "param", p_off++);
- switch_xml_set_attr_d(param, "name", name);
+ switch_xml_set_attr_d_buf(param, "name", name);
switch_xml_set_attr_d(param, "value", scalar_data);
nv = 0;
}
More information about the Freeswitch-svn
mailing list