From 7183562d7af7b3c8e3bd3a33332edbc0edcbab43 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 20 Dec 2006 21:46:18 +0000 Subject: [PATCH] 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 --- src/switch_ivr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index fd2d0a65b2..a996989d36 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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;