From 0e88eb3ae789eb44b2eb49c29ba15cc08b3e6f1e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 14 Oct 2008 19:17:27 +0000 Subject: [PATCH] add const to macro git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10014 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) /*!