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) /*!
participants (1)
-
Freeswitch SVN