Author: mikej Date: Mon Feb 12 21:31:26 2007 New Revision: 4220 Modified: freeswitch/trunk/src/include/switch_core.h freeswitch/trunk/src/switch_core.c Log: use const for switch_core_permanent_strdup var. Modified: freeswitch/trunk/src/include/switch_core.h ============================================================================== --- freeswitch/trunk/src/include/switch_core.h (original) +++ freeswitch/trunk/src/include/switch_core.h Mon Feb 12 21:31:26 2007 @@ -375,7 +375,7 @@ \param todup the string to duplicate \return a pointer to the newly duplicated string */ -SWITCH_DECLARE(char *) switch_core_permanent_strdup(char *todup); +SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup); /*! \brief Copy a string using memory allocation from a session's pool Modified: freeswitch/trunk/src/switch_core.c ============================================================================== --- freeswitch/trunk/src/switch_core.c (original) +++ freeswitch/trunk/src/switch_core.c Mon Feb 12 21:31:26 2007 @@ -1443,7 +1443,7 @@ return ptr; } -SWITCH_DECLARE(char *) switch_core_permanent_strdup(char *todup) +SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup) { char *duped = NULL; switch_size_t len;