[Freeswitch-svn] [commit] r4264 - in freeswitch/trunk/src: . include

Freeswitch SVN mikej at freeswitch.org
Wed Feb 14 14:14:53 EST 2007


Author: mikej
Date: Wed Feb 14 14:14:53 2007
New Revision: 4264

Modified:
   freeswitch/trunk/src/include/switch_core.h
   freeswitch/trunk/src/switch_core.c

Log:
switch_core_session_strdup now takes const char * arg.

Modified: freeswitch/trunk/src/include/switch_core.h
==============================================================================
--- freeswitch/trunk/src/include/switch_core.h	(original)
+++ freeswitch/trunk/src/include/switch_core.h	Wed Feb 14 14:14:53 2007
@@ -383,7 +383,7 @@
   \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

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Wed Feb 14 14:14:53 2007
@@ -1466,7 +1466,7 @@
 }
 
 
-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;



More information about the Freeswitch-svn mailing list