Changeset 749:da9869fe1da8 in mediastreamer2


Ignore:
Timestamp:
Oct 27, 2009 1:00:32 PM (4 years ago)
Author:
aymeric <aymeric@…>
Branch:
default
Message:

use correct types

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@737 3f6dc0c8-ddfe-455d-9043-3cd528dc4637

Location:
linphone/mediastreamer2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • linphone/mediastreamer2/include/mediastreamer2/ice.h

    r311 r749  
    7777 
    7878    int rem_controlling; 
    79     UInt64 tiebreak_value; 
     79    uint64_t tiebreak_value; 
    8080 
    8181#define ICE_CL_RUNNING 0 
  • linphone/mediastreamer2/src/ice.c

    r729 r749  
    383383                        checklist->rem_ice_ufrag, 
    384384                        checklist->loc_ice_ufrag); 
    385                 username.sizeValue = (UInt16)strlen(username.value); 
     385                username.sizeValue = (uint16_t)strlen(username.value); 
    386386 
    387387 
    388388                snprintf(password.value, sizeof(password.value), "%s", 
    389389                        checklist->rem_ice_pwd); 
    390                 password.sizeValue = (UInt16)strlen(password.value); 
     390                password.sizeValue = (uint16_t)strlen(password.value); 
    391391 
    392392 
     
    617617                        if (msg.hasFingerprint==TRUE) 
    618618                        { 
    619                                 char *lenpos = (char *)mp->b_rptr + sizeof(UInt16); 
    620                                 UInt16 newlen = htons(msg.msgHdr.msgLength-8); /* remove fingerprint size */ 
    621                                 memcpy(lenpos, &newlen, sizeof(UInt16)); 
     619                                char *lenpos = (char *)mp->b_rptr + sizeof(uint16_t); 
     620                                uint16_t newlen = htons(msg.msgHdr.msgLength-8); /* remove fingerprint size */ 
     621                                memcpy(lenpos, &newlen, sizeof(uint16_t)); 
    622622                                stunCalculateIntegrity_shortterm(hmac, (char*)mp->b_rptr, mp->b_wptr-mp->b_rptr-24-8, checklist->loc_ice_pwd); 
    623623                        } 
     
    637637                        if (msg.hasFingerprint==TRUE) 
    638638                        { 
    639                                 char *lenpos = (char *)mp->b_rptr + sizeof(UInt16); 
    640                                 UInt16 newlen = htons(msg.msgHdr.msgLength); /* add back fingerprint size */ 
    641                                 memcpy(lenpos, &newlen, sizeof(UInt16)); 
     639                                char *lenpos = (char *)mp->b_rptr + sizeof(uint16_t); 
     640                                uint16_t newlen = htons(msg.msgHdr.msgLength); /* add back fingerprint size */ 
     641                                memcpy(lenpos, &newlen, sizeof(uint16_t)); 
    642642                        } 
    643643                } 
     
    886886 
    887887                { 
    888                         UInt32 cookie = 0x2112A442; 
     888                        uint32_t cookie = 0x2112A442; 
    889889                        resp.hasXorMappedAddress = TRUE; 
    890890                        resp.xorMappedAddress.ipv4.port = remote_addr.port^(cookie>>16); 
     
    939939 
    940940                { 
    941                         UInt32 cookie = 0x2112A442; 
    942                         UInt16 cookie16 = 0x2112A442 >> 16; 
     941                        uint32_t cookie = 0x2112A442; 
     942                        uint16_t cookie16 = 0x2112A442 >> 16; 
    943943                        mappedAddr.port = resp.xorMappedAddress.ipv4.port^cookie16; 
    944944                        mappedAddr.addr = resp.xorMappedAddress.ipv4.addr^cookie; 
     
    13331333        } 
    13341334 
     1335#if !defined(_WIN32_WCE) 
    13351336        ice_sound_send_stun_request(d->session, d->check_lists, f->ticker->time); 
     1337#else 
     1338        ice_sound_send_stun_request(d->session, d->check_lists, f->ticker->time)); 
     1339#endif 
    13361340} 
    13371341 
Note: See TracChangeset for help on using the changeset viewer.