Ignore:
Timestamp:
May 1, 2007 12:25:01 PM (17 years ago)
Author:
bennylp
Message:

Ported PJLIB-UTIL and PJNATH to Symbian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_session.c

    r1216 r1239  
    297297 
    298298    if (local_ufrag == NULL) { 
    299         ice->rx_ufrag.ptr = pj_pool_alloc(ice->pool, 16); 
     299        ice->rx_ufrag.ptr = (char*) pj_pool_alloc(ice->pool, 16); 
    300300        pj_create_random_string(ice->rx_ufrag.ptr, 16); 
    301301        ice->rx_ufrag.slen = 16; 
     
    305305 
    306306    if (local_passwd == NULL) { 
    307         ice->rx_pass.ptr = pj_pool_alloc(ice->pool, 16); 
     307        ice->rx_pass.ptr = (char*) pj_pool_alloc(ice->pool, 16); 
    308308        pj_create_random_string(ice->rx_pass.ptr, 16); 
    309309        ice->rx_pass.slen = 16; 
     
    397397{ 
    398398    PJ_ASSERT_RETURN(ice && prefs, PJ_EINVAL); 
    399     ice->prefs = pj_pool_calloc(ice->pool, PJ_ARRAY_SIZE(prefs),  
    400                                 sizeof(pj_uint8_t)); 
     399    ice->prefs = (pj_uint8_t*) pj_pool_calloc(ice->pool, PJ_ARRAY_SIZE(prefs), 
     400                                              sizeof(pj_uint8_t)); 
    401401    pj_memcpy(ice->prefs, prefs, sizeof(prefs)); 
    402402    return PJ_SUCCESS; 
     
    17091709     * Request was sent from. 
    17101710     */ 
    1711     if (sockaddr_cmp(&check->rcand->addr, src_addr) != 0) { 
     1711    if (sockaddr_cmp(&check->rcand->addr, (const pj_sockaddr*)src_addr) != 0) { 
    17121712        status = PJNATH_EICEINSRCADDR; 
    17131713        LOG4((ice->obj_name,  
     
    20642064 
    20652065        /* Foundation is random, unique from other foundation */ 
    2066         rcand->foundation.ptr = pj_pool_alloc(ice->pool, 36); 
     2066        rcand->foundation.ptr = (char*) pj_pool_alloc(ice->pool, 36); 
    20672067        rcand->foundation.slen = pj_ansi_snprintf(rcand->foundation.ptr, 36, 
    20682068                                                  "f%p",  
     
    23032303    } 
    23042304 
    2305     stun_status = pj_stun_msg_check(pkt, pkt_size, PJ_STUN_IS_DATAGRAM); 
     2305    stun_status = pj_stun_msg_check((const pj_uint8_t*)pkt, pkt_size,  
     2306                                    PJ_STUN_IS_DATAGRAM); 
    23062307    if (stun_status == PJ_SUCCESS) { 
    23072308        status = pj_stun_session_on_rx_pkt(comp->stun_sess, pkt, pkt_size, 
Note: See TracChangeset for help on using the changeset viewer.