to const or not to const, that is the question.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3769 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2006-12-20 21:46:18 +00:00
parent f564963282
commit 7183562d7a
1 changed files with 6 additions and 6 deletions

View File

@ -4439,7 +4439,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
}
while(language) {
if ((lname = switch_xml_attr(language, "name")) && !strcasecmp(lname, lang)) {
if ((lname = (char *) switch_xml_attr(language, "name")) && !strcasecmp(lname, lang)) {
break;
}
language = language->next;
@ -4450,9 +4450,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
goto done;
}
sound_path = switch_xml_attr_soft(language, "sound_path");
tts_engine = switch_xml_attr_soft(language, "tts_engine");
tts_voice = switch_xml_attr_soft(language, "tts_voice");
sound_path = (char *) switch_xml_attr_soft(language, "sound_path");
tts_engine = (char *) switch_xml_attr_soft(language, "tts_engine");
tts_voice = (char *) switch_xml_attr_soft(language, "tts_voice");
old_sound_prefix = switch_channel_get_variable(channel, "sound_prefix");
switch_channel_set_variable(channel, "sound_prefix", sound_path);
@ -4463,7 +4463,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
}
while(macro) {
if ((mname = switch_xml_attr(macro, "name")) && !strcasecmp(mname, macro_name)) {
if ((mname = (char *) switch_xml_attr(macro, "name")) && !strcasecmp(mname, macro_name)) {
break;
}
macro = macro->next;
@ -4482,7 +4482,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
switch_channel_pre_answer(channel);
while(input) {
char *pattern = switch_xml_attr(input, "pattern");
char *pattern = (char *) switch_xml_attr(input, "pattern");
if (pattern) {
pcre *re = NULL;