packet = switch_stun_packet_build_header(SWITCH_STUN_BINDING_REQUEST, NULL, buf);
switch_stun_packet_attribute_add_username(packet, ice->ice_user, 32);
if (ice->pass) {
- switch_stun_packet_attribute_add_password(packet, ice->pass, strlen(ice->pass));
+ switch_stun_packet_attribute_add_password(packet, ice->pass, (uint16_t)strlen(ice->pass));
}
bytes = switch_stun_packet_length(packet);
rb->dlsr = 0;
rtcp_bytes += sizeof(struct switch_rtcp_report_block);
- rtp_session->rtcp_send_msg.header.length = htons((rtcp_bytes / 4) - 1);
+ rtp_session->rtcp_send_msg.header.length = htons((u_short)(rtcp_bytes / 4) - 1);
#ifdef ENABLE_SRTP