[Freeswitch-svn] [commit] r10014 - freeswitch/trunk/src/include
Freeswitch SVN
anthm at freeswitch.org
Tue Oct 14 15:17:27 EDT 2008
Author: anthm
Date: Tue Oct 14 15:17:27 2008
New Revision: 10014
Modified:
freeswitch/trunk/src/include/switch_utils.h
Log:
add const to macro
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:17:27 2008
@@ -376,7 +376,7 @@
\param fname the function name to declare
\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(char *string) { if (!string) return;\
+#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)
/*!
More information about the Freeswitch-svn
mailing list