提交 87bb33ae authored 作者: Jeff Lenk's avatar Jeff Lenk

windows fix x64 build warnings freetdm

上级 b02682bd
...@@ -3415,7 +3415,7 @@ static FIO_READ_FUNCTION(ftdm_raw_read) ...@@ -3415,7 +3415,7 @@ static FIO_READ_FUNCTION(ftdm_raw_read)
ftdm_status_t status = ftdmchan->fio->read(ftdmchan, data, datalen); ftdm_status_t status = ftdmchan->fio->read(ftdmchan, data, datalen);
if (status == FTDM_SUCCESS && ftdmchan->fds[FTDM_READ_TRACE_INDEX] > -1) { if (status == FTDM_SUCCESS && ftdmchan->fds[FTDM_READ_TRACE_INDEX] > -1) {
ftdm_size_t dlen = *datalen; ftdm_size_t dlen = *datalen;
if ((ftdm_size_t)write(ftdmchan->fds[FTDM_READ_TRACE_INDEX], data, dlen) != dlen) { if ((ftdm_size_t)write(ftdmchan->fds[FTDM_READ_TRACE_INDEX], data, (int)dlen) != dlen) {
ftdm_log(FTDM_LOG_WARNING, "Raw input trace failed to write all of the %zd bytes\n", dlen); ftdm_log(FTDM_LOG_WARNING, "Raw input trace failed to write all of the %zd bytes\n", dlen);
} }
} }
...@@ -3428,7 +3428,7 @@ static FIO_READ_FUNCTION(ftdm_raw_read) ...@@ -3428,7 +3428,7 @@ static FIO_READ_FUNCTION(ftdm_raw_read)
ftdm_size_t dlen = *datalen; ftdm_size_t dlen = *datalen;
ftdm_size_t rc = 0; ftdm_size_t rc = 0;
write_chan_io_dump(&ftdmchan->rxdump, data, dlen); write_chan_io_dump(&ftdmchan->rxdump, data, (int)dlen);
/* if dtmf debug is enabled and initialized, write there too */ /* if dtmf debug is enabled and initialized, write there too */
if (ftdmchan->dtmfdbg.file) { if (ftdmchan->dtmfdbg.file) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论