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

FreeSWITCH SVN mikej at freeswitch.org
Mon Jan 19 13:11:01 PST 2009


Author: mikej
Date: Mon Jan 19 15:11:01 2009
New Revision: 11292

Log:
fix windows build

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Mon Jan 19 15:11:01 2009
@@ -239,15 +239,15 @@
 	return x;
 }
 
-static uint8_t check_channel_status(originate_global_t *oglobals, originate_status_t *originate_status, int len)
+static uint8_t check_channel_status(originate_global_t *oglobals, originate_status_t *originate_status, uint32_t len)
 {
 
 	uint32_t i;
-	oglobals->hups = 0;
-	oglobals->idx = IDX_NADA;
-	int rval = 0;
+	uint8_t rval = 0;
 	switch_channel_t *caller_channel = NULL;
 	int pindex = -1;
+	oglobals->hups = 0;
+	oglobals->idx = IDX_NADA;
 
 	if (oglobals->session) {
 		caller_channel = switch_core_session_get_channel(oglobals->session);
@@ -1024,9 +1024,9 @@
 		}
 
 		for (r = 0; r < or_argc; r++) {
-			oglobals.hups = 0;
 			char *p, *end = NULL;
 			const char *var_begin, *var_end;
+			oglobals.hups = 0;
 			
 			reason = SWITCH_CAUSE_NONE;
 			memset(peer_names, 0, sizeof(peer_names));



More information about the Freeswitch-svn mailing list