]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_core_session_strdup now takes const char * arg.
authorMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 19:14:53 +0000 (19:14 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 14 Feb 2007 19:14:53 +0000 (19:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4264 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index 5f852fd4eb542e3b567d8d773cae4bf1676012b0..4607dc20e627449e82ff7289f9590eebfcb35e82 100644 (file)
@@ -383,7 +383,7 @@ SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup);
   \param todup the string to duplicate
   \return a pointer to the newly duplicated string
 */
-SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, char *todup);
+SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, const char *todup);
 
 /*! 
   \brief Copy a string using memory allocation from a given pool
index c4187b459b638eafc341f0eb267d772e89a68cb2..c6b31f4b1b511f205216c3cf763ff969d2c41ad3 100644 (file)
@@ -1466,7 +1466,7 @@ SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup)
 }
 
 
-SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, char *todup)
+SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, const char *todup)
 {
        char *duped = NULL;
        switch_size_t len;