From: Anthony Minessale Date: Tue, 14 Oct 2008 19:17:27 +0000 (+0000) Subject: add const to macro X-Git-Tag: v1.0.2~806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e88eb3ae789eb44b2eb49c29ba15cc08b3e6f1e;p=thirdparty%2Ffreeswitch.git add const to macro git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10014 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index e93988b8f7..cf57efcb90 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -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) /*!