From 1acc2e52190d26b0e0522eae0b7c71e7c581f4a1 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Fri, 20 Mar 2009 03:28:11 +0000 Subject: [PATCH] Fix FreeBSD build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12678 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_port_allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_port_allocator.c b/src/switch_core_port_allocator.c index 3b58e45429..3680011175 100644 --- a/src/switch_core_port_allocator.c +++ b/src/switch_core_port_allocator.c @@ -118,7 +118,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_port_allocator_request_port(switch_c 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;