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

FreeSWITCH SVN mrene at freeswitch.org
Thu Mar 19 20:28:11 PDT 2009


Author: mrene
Date: Thu Mar 19 22:28:11 2009
New Revision: 12678

Log:
Fix FreeBSD build

Modified:
   freeswitch/trunk/src/switch_core_port_allocator.c

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	Thu Mar 19 22:28:11 2009
@@ -118,7 +118,7 @@
 	int odd = switch_test_flag(alloc, SPF_ODD);
 
 	switch_mutex_lock(alloc->mutex);
-	srand((unsigned)(intptr_t)port_ptr + switch_thread_self() + switch_micro_time_now());
+	srand((unsigned)(intptr_t)port_ptr + (uint32_t)switch_thread_self() + switch_micro_time_now());
 
 	while (alloc->track_used < alloc->track_len) {
 		uint32_t index;



More information about the Freeswitch-svn mailing list