add const to macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10014 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
baf6560816
commit
0e88eb3ae7
|
@ -376,7 +376,7 @@ SWITCH_DECLARE(switch_time_t) switch_str_time(const char *in);
|
|||
\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)
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue