提交 2b507706 authored 作者: Michael Jerris's avatar Michael Jerris

switch_core_session_strdup now takes const char * arg.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4264 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 df85aac8
...@@ -383,7 +383,7 @@ SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup); ...@@ -383,7 +383,7 @@ SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup);
\param todup the string to duplicate \param todup the string to duplicate
\return a pointer to the newly duplicated string \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 \brief Copy a string using memory allocation from a given pool
......
...@@ -1466,7 +1466,7 @@ SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup) ...@@ -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; char *duped = NULL;
switch_size_t len; switch_size_t len;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论