]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix msvc build.
authorMichael Jerris <mike@jerris.com>
Sat, 22 Dec 2007 00:51:26 +0000 (00:51 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 22 Dec 2007 00:51:26 +0000 (00:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6953 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_cpp.cpp
src/switch_ivr.c
src/switch_ivr_async.c

index ae29c36bd97d7e11a198d941284e48655dc82fca..a4c2d29fbb37857ba45bcc1fab676d1d998daf18 100644 (file)
@@ -390,8 +390,6 @@ int CoreSession::flushEvents()
 
 int CoreSession::flushDigits() 
 {
-       char buf[256];
-       switch_size_t has;
        switch_channel_t *channel;
 
 
index f96fc6e93b6c1a026aaebcaa61c3a9edead54137..8e1afd431bd07eeaa93426cf89b07f6963fbb5d9 100644 (file)
@@ -640,7 +640,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
 
                if (switch_channel_has_dtmf(channel)) {
                        switch_dtmf_t dtmf = {0};
-                       int y;
+                       switch_size_t y;
                        
                        for (y = 0; y < maxdigits; y++) {
                                if (switch_channel_dequeue_dtmf(channel, &dtmf) != SWITCH_STATUS_SUCCESS) {
index 9a36d65213d3224d341063cdfdc2de308b503cf2..6b4013342993519a93cdd9d309c4085df12a5663 100644 (file)
@@ -821,8 +821,8 @@ static switch_status_t generate_on_dtmf(switch_core_session_t *session, const sw
         switch_inband_dtmf_generate_t *pvt = (switch_inband_dtmf_generate_t *) switch_core_media_bug_get_user_data(bug);
         
         if (pvt) {
-                       switch_mutex_lock(pvt->mutex);
                        char buf[2] = "";
+                       switch_mutex_lock(pvt->mutex);
                        buf[0] = dtmf->digit;
                        teletone_run(&pvt->ts, buf);
                        switch_mutex_unlock(pvt->mutex);