use more correct const char * for things that should not be modified. This should also fix the switch_cpp.cpp changes from MODAPP-44. More patches to follow up on this for a few more modules that will likely break with this commit.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6120 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-11-01 11:28:26 +00:00
1 parent b416d80212
commit 622a2733dc
52 files changed
+254 -246

No files matched your search

+2 -2
View File
@@ -309,7 +309,7 @@ void BaseCDR::process_channel_variables(const std::list<std::string>& stringlist
tempstringvector.push_back('\0');
char* tempstring= &tempstringvector[0];
char *tempvariable;
const char *tempvariable;
tempvariable = switch_channel_get_variable(channel,tempstring);
@@ -350,7 +350,7 @@ void BaseCDR::process_channel_variables(const std::list<std::string>& stringlist
tempstringvector.push_back('\0');
char* tempstring= &tempstringvector[0];
char *tempvariable;
const char *tempvariable;
tempvariable = switch_channel_get_variable(channel,tempstring);
if (!switch_strlen_zero(tempvariable))
chanvars_supp[*iItr] = tempvariable;
@@ -631,7 +631,7 @@ static switch_status_t parse_command(listener_t * listener, switch_event_t *even
goto done;
} else if (!strncasecmp(cmd, "getvar", 6)) {
char *arg;
char *val = "";
const char *val = "";
strip_cr(cmd);