]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix warnings on windows code verification
authorJeff Lenk <jeff@jefflenk.com>
Mon, 25 Jun 2012 15:06:41 +0000 (10:06 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Mon, 25 Jun 2012 15:06:41 +0000 (10:06 -0500)
src/switch_rtp.c

index 05dd7ef0c594520f8cfe3715536ff90f6231208a..c76eb2b41b739bdb7d8c0e7162dc86f93d822b86 100644 (file)
@@ -590,7 +590,7 @@ static switch_status_t ice_out(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice)
        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);
 
@@ -992,7 +992,7 @@ static int check_srtp_and_ice(switch_rtp_t *rtp_session)
                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