From: Michael Jerris Date: Tue, 13 Feb 2007 02:31:26 +0000 (+0000) Subject: use const for switch_core_permanent_strdup var. X-Git-Tag: v1.0-beta1~1148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5557983aa2bf77531fe0638b748c3e62fb2dc7;p=thirdparty%2Ffreeswitch.git use const for switch_core_permanent_strdup var. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4220 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/include/switch_core.h b/src/include/switch_core.h index 086f1965e3..f91ab74597 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -375,7 +375,7 @@ SWITCH_DECLARE(void *) switch_core_session_alloc(switch_core_session_t *session, \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 diff --git a/src/switch_core.c b/src/switch_core.c index 907b3951cb..88d069fce3 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1443,7 +1443,7 @@ SWITCH_DECLARE(void *) switch_core_permanent_alloc(switch_size_t memory) 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;