[Freeswitch-svn] [commit] r6953 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Fri Dec 21 19:51:26 EST 2007


Author: mikej
Date: Fri Dec 21 19:51:26 2007
New Revision: 6953

Modified:
   freeswitch/trunk/src/switch_cpp.cpp
   freeswitch/trunk/src/switch_ivr.c
   freeswitch/trunk/src/switch_ivr_async.c

Log:
fix msvc build.

Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp	(original)
+++ freeswitch/trunk/src/switch_cpp.cpp	Fri Dec 21 19:51:26 2007
@@ -390,8 +390,6 @@
 
 int CoreSession::flushDigits() 
 {
-	char buf[256];
-	switch_size_t has;
 	switch_channel_t *channel;
 
 

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Fri Dec 21 19:51:26 2007
@@ -640,7 +640,7 @@
 
 		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) {

Modified: freeswitch/trunk/src/switch_ivr_async.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_async.c	(original)
+++ freeswitch/trunk/src/switch_ivr_async.c	Fri Dec 21 19:51:26 2007
@@ -821,8 +821,8 @@
         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);



More information about the Freeswitch-svn mailing list