From 0734faef39d5296df41a37d56e0388b496e29f88 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 10 Apr 2007 21:18:33 +0000 Subject: [PATCH] use the right data types. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4912 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 7063128d40..f41a24b134 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -83,7 +83,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session, static void *SWITCH_THREAD_FUNC unicast_thread_run(switch_thread_t *thread, void *obj) { switch_unicast_conninfo_t *conninfo = (switch_unicast_conninfo_t *) obj; - uint32_t len; + switch_size_t len; switch_channel_t *channel; if (!conninfo) { @@ -97,7 +97,7 @@ static void *SWITCH_THREAD_FUNC unicast_thread_run(switch_thread_t *thread, void if (switch_socket_recv(conninfo->socket, conninfo->write_frame.data, &len) != SWITCH_STATUS_SUCCESS || len == 0) { break; } - conninfo->write_frame.datalen = len; + conninfo->write_frame.datalen = (uint32_t)len; conninfo->write_frame.samples = conninfo->write_frame.datalen / 2; switch_core_session_write_frame(conninfo->session, &conninfo->write_frame, -1, conninfo->stream_id); }