[Freeswitch-trunk] [commit] r12696 - in freeswitch/trunk/src: . mod/applications/mod_lcr

FreeSWITCH SVN mikej at freeswitch.org
Fri Mar 20 15:38:38 PDT 2009


Author: mikej
Date: Fri Mar 20 17:38:38 2009
New Revision: 12696

Log:
fix windows build

Modified:
   freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c
   freeswitch/trunk/src/switch_core_port_allocator.c

Modified: freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	Fri Mar 20 17:38:38 2009
@@ -527,6 +527,7 @@
 	switch_bool_t lookup_status;
 	switch_channel_t *channel;
 	char *id_str;
+	char *safe_sql;
 
 	digits_copy = string_digitsonly(cb_struct->pool, digits);
 	if (switch_strlen_zero(digits_copy)) {
@@ -558,7 +559,6 @@
 	}
 
 	/* set up the query to be executed */
-	char *safe_sql;
 
 	/* format the custom_sql */
 	safe_sql = format_custom_sql(profile->custom_sql, cb_struct, digits_copy);

Modified: freeswitch/trunk/src/switch_core_port_allocator.c
==============================================================================
--- freeswitch/trunk/src/switch_core_port_allocator.c	(original)
+++ freeswitch/trunk/src/switch_core_port_allocator.c	Fri Mar 20 17:38:38 2009
@@ -118,7 +118,7 @@
 	int odd = switch_test_flag(alloc, SPF_ODD);
 
 	switch_mutex_lock(alloc->mutex);
-	srand((unsigned)(intptr_t)port_ptr + (unsigned)(intptr_t)switch_thread_self() + switch_micro_time_now());
+	srand((unsigned)((unsigned)(intptr_t)port_ptr + (unsigned)(intptr_t)switch_thread_self() + switch_micro_time_now()));
 
 	while (alloc->track_used < alloc->track_len) {
 		uint32_t index;



More information about the Freeswitch-trunk mailing list