From e65d3da3b438ebad1d188de2a33a6911e336a429 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 9 Jun 2009 17:40:07 +0000 Subject: [PATCH] fix msvc build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13730 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_asr.c | 3 ++- src/switch_core_speech.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/switch_core_asr.c b/src/switch_core_asr.c index 32cdb9d09b..2d1499c510 100644 --- a/src/switch_core_asr.c +++ b/src/switch_core_asr.c @@ -125,8 +125,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_asr_load_grammar(switch_asr_handle_t /* set ASR params */ if (!switch_strlen_zero(param_string)) { char *param[256] = { 0 }; + int i; switch_separate_string(param_string, ',', param, (sizeof(param) / sizeof(param[0]))); - for (int i = 0; param[i]; ++i) { + for (i = 0; param[i]; ++i) { char *param_pair[2] = { 0 }; if(switch_separate_string(param[i], '=', param_pair, (sizeof(param_pair) / sizeof(param_pair[0]))) == 2) { switch_core_asr_text_param(ah, param_pair[0], param_pair[1]); diff --git a/src/switch_core_speech.c b/src/switch_core_speech.c index 6e4e8917cb..178fb39a8c 100644 --- a/src/switch_core_speech.c +++ b/src/switch_core_speech.c @@ -136,8 +136,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_speech_feed_tts(switch_speech_handle /* set TTS params */ if (!switch_strlen_zero(param_string)) { char *param[256] = { 0 }; + int i; switch_separate_string(param_string, ',', param, (sizeof(param) / sizeof(param[0]))); - for (int i = 0; param[i]; ++i) { + for (i = 0; param[i]; ++i) { char *param_pair[2] = { 0 }; if(switch_separate_string(param[i], '=', param_pair, (sizeof(param_pair) / sizeof(param_pair[0]))) == 2) { switch_core_speech_text_param_tts(sh, param_pair[0], param_pair[1]);