提交 1acc2e52 authored 作者: Mathieu Rene's avatar Mathieu Rene

Fix FreeBSD build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12678 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 85624609
...@@ -118,7 +118,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_port_allocator_request_port(switch_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); int odd = switch_test_flag(alloc, SPF_ODD);
switch_mutex_lock(alloc->mutex); 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) { while (alloc->track_used < alloc->track_len) {
uint32_t index; uint32_t index;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论