[Freeswitch-trunk] [commit] r3769 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Wed Dec 20 16:46:18 EST 2006


Author: mikej
Date: Wed Dec 20 16:46:18 2006
New Revision: 3769

Modified:
   freeswitch/trunk/src/switch_ivr.c

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

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Wed Dec 20 16:46:18 2006
@@ -4439,7 +4439,7 @@
     }
 
     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 @@
         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 @@
     }
     
     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_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;



More information about the Freeswitch-trunk mailing list