From 74a3f20ed70d6fc19a03d77cb9c205266268ac1d Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Fri, 21 May 2010 11:43:10 -0400 Subject: [PATCH] freetdm: windows casting --- .../src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c index becf373564..c1cec76c32 100644 --- a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c +++ b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c @@ -429,7 +429,7 @@ static FIO_CHANNEL_REQUEST_FUNCTION(sangoma_boost_channel_request) if (caller_data->raw_data_len) { ftdm_set_string(event.custom_data, caller_data->raw_data); - event.custom_data_size = caller_data->raw_data_len; + event.custom_data_size = (uint16_t)caller_data->raw_data_len; } OUTBOUND_REQUESTS[r].status = BST_WAITING; @@ -1538,7 +1538,7 @@ static __inline__ void state_advance(ftdm_channel_t *ftdmchan) if (ftdmchan->caller_data.raw_data_len) { ftdm_set_string(event.custom_data, ftdmchan->caller_data.raw_data); - event.custom_data_size = ftdmchan->caller_data.raw_data_len; + event.custom_data_size = (uint16_t)ftdmchan->caller_data.raw_data_len; } OUTBOUND_REQUESTS[r].status = BST_WAITING;