]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add const to macro
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Oct 2008 19:17:27 +0000 (19:17 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Oct 2008 19:17:27 +0000 (19:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10014 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_utils.h

index e93988b8f7b2a9f2eccc5084cc1a748c1304a16e..cf57efcb90bab97096ea7fc41397964d59256f1b 100644 (file)
@@ -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)
 
 /*!