diff --git a/linphone/mediastreamer2/src/ice.c b/linphone/mediastreamer2/src/ice.c index c730239cd..e6b0843eb 100644 --- a/linphone/mediastreamer2/src/ice.c +++ b/linphone/mediastreamer2/src/ice.c @@ -50,11 +50,11 @@ ice_sendtest( struct IceCheckList *checklist, struct CandidatePair *remote_candi check */ req.hasPriority = TRUE; - UCHAR type_preference = 110; - UCHAR interface_preference = 255; - UCHAR stun_priority=255; - req.priority.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8) - | (256 - remote_candidate->remote_candidate.component_id); + uint32_t type_preference = 110; + uint32_t interface_preference = 255; + uint32_t stun_priority=255; + req.priority.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8) + | (256 - remote_candidate->remote_candidate.component_id); /* TODO: put this parameter only for the candidate selected */ if (remote_candidate->nominated_pair==1) @@ -810,11 +810,11 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch new_pair.remote_candidate.priority = msg.priority.priority; if (new_pair.remote_candidate.priority==0) { - UCHAR type_preference = 110; - UCHAR interface_preference = 255; - UCHAR stun_priority=255; - new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8) - | (256 - new_pair.remote_candidate.component_id); + uint32_t type_preference = 110; + uint32_t interface_preference = 255; + uint32_t stun_priority=255; + new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8) + | (256 - new_pair.remote_candidate.component_id); } snprintf(new_pair.remote_candidate.cand_type, sizeof(cand_pair->remote_candidate.cand_type), @@ -1081,11 +1081,11 @@ static int ice_process_stun_message(RtpSession *session, struct IceCheckList *ch snprintf(new_pair.local_candidate.conn_addr, sizeof(new_pair.local_candidate.conn_addr), "%s", mapped_addr); - UCHAR type_preference = 110; - UCHAR interface_preference = 255; - UCHAR stun_priority=255; - new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8) - | (256 - new_pair.remote_candidate.component_id); + uint32_t type_preference = 110; + uint32_t interface_preference = 255; + uint32_t stun_priority=255; + new_pair.remote_candidate.priority = (type_preference << 24) | (interface_preference << 16) | (stun_priority << 8) + | (256 - new_pair.remote_candidate.component_id); snprintf(new_pair.local_candidate.cand_type, sizeof(cand_pair->local_candidate.cand_type), "prflx");