Changeset 1239 for pjproject/trunk/pjnath/src/pjnath/ice_session.c
- Timestamp:
- May 1, 2007 12:25:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_session.c
r1216 r1239 297 297 298 298 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); 300 300 pj_create_random_string(ice->rx_ufrag.ptr, 16); 301 301 ice->rx_ufrag.slen = 16; … … 305 305 306 306 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); 308 308 pj_create_random_string(ice->rx_pass.ptr, 16); 309 309 ice->rx_pass.slen = 16; … … 397 397 { 398 398 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)); 401 401 pj_memcpy(ice->prefs, prefs, sizeof(prefs)); 402 402 return PJ_SUCCESS; … … 1709 1709 * Request was sent from. 1710 1710 */ 1711 if (sockaddr_cmp(&check->rcand->addr, src_addr) != 0) {1711 if (sockaddr_cmp(&check->rcand->addr, (const pj_sockaddr*)src_addr) != 0) { 1712 1712 status = PJNATH_EICEINSRCADDR; 1713 1713 LOG4((ice->obj_name, … … 2064 2064 2065 2065 /* 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); 2067 2067 rcand->foundation.slen = pj_ansi_snprintf(rcand->foundation.ptr, 36, 2068 2068 "f%p", … … 2303 2303 } 2304 2304 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); 2306 2307 if (stun_status == PJ_SUCCESS) { 2307 2308 status = pj_stun_session_on_rx_pkt(comp->stun_sess, pkt, pkt_size,
Note: See TracChangeset
for help on using the changeset viewer.