]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use const for switch_core_permanent_strdup var.
authorMichael Jerris <mike@jerris.com>
Tue, 13 Feb 2007 02:31:26 +0000 (02:31 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 13 Feb 2007 02:31:26 +0000 (02:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4220 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_core.h
src/switch_core.c

index 086f1965e300ad1d55f9346169dff843f31c50c8..f91ab745970348425d06036018030caf797e829b 100644 (file)
@@ -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
index 907b3951cb549ca2c5ddbe1a54c1c764a39331de..88d069fce314ce6d076b29f057d3a675187a2a55 100644 (file)
@@ -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;