[Freeswitch-svn] [commit] r10016 - in freeswitch/trunk/src: include mod/applications/mod_enum

Freeswitch SVN anthm at freeswitch.org
Tue Oct 14 15:46:47 EDT 2008


Author: anthm
Date: Tue Oct 14 15:46:47 2008
New Revision: 10016

Modified:
   freeswitch/trunk/src/include/switch_utils.h
   freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c

Log:
fix build err

Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h	(original)
+++ freeswitch/trunk/src/include/switch_utils.h	Tue Oct 14 15:46:47 2008
@@ -377,7 +377,7 @@
   \param vname the name of the global pointer to modify with the new function
 */
 #define SWITCH_DECLARE_GLOBAL_STRING_FUNC(fname, vname) static void fname(const char *string) { if (!string) return;\
-		if (vname) {free(vname); vname = NULL;}vname = strdup(string);} static void fname(char *string)
+		if (vname) {free(vname); vname = NULL;}vname = strdup(string);} static void fname(const char *string)
 
 /*!
   \brief Separate a string into an array based on a character delimeter

Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	Tue Oct 14 15:46:47 2008
@@ -121,8 +121,8 @@
 
 	if ((settings = switch_xml_child(cfg, "settings"))) {
 		for (param = switch_xml_child(settings, "param"); param; param = param->next) {
-			char *var = (char *) switch_xml_attr_soft(param, "name");
-			char *val = (char *) switch_xml_attr_soft(param, "value");
+			const char *var = switch_xml_attr_soft(param, "name");
+			const char *val = switch_xml_attr_soft(param, "value");
 			if (!strcasecmp(var, "default-root")) {
 				set_global_root(val);
 			} else if (!strcasecmp(var, "auto-reload")) {



More information about the Freeswitch-svn mailing list