Changeset 1266 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- May 11, 2007 3:14:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r1248 r1266 165 165 cap_hdr = pjsip_endpt_get_capability(pjsua_var.endpt, PJSIP_H_ALLOW, NULL); 166 166 if (cap_hdr) { 167 pjsip_msg_add_hdr(tdata->msg, pjsip_hdr_clone(tdata->pool, cap_hdr)); 167 pjsip_msg_add_hdr(tdata->msg, 168 (pjsip_hdr*) pjsip_hdr_clone(tdata->pool, cap_hdr)); 168 169 } 169 170 … … 171 172 cap_hdr = pjsip_endpt_get_capability(pjsua_var.endpt, PJSIP_H_ACCEPT, NULL); 172 173 if (cap_hdr) { 173 pjsip_msg_add_hdr(tdata->msg, pjsip_hdr_clone(tdata->pool, cap_hdr)); 174 pjsip_msg_add_hdr(tdata->msg, 175 (pjsip_hdr*) pjsip_hdr_clone(tdata->pool, cap_hdr)); 174 176 } 175 177 … … 177 179 cap_hdr = pjsip_endpt_get_capability(pjsua_var.endpt, PJSIP_H_SUPPORTED, NULL); 178 180 if (cap_hdr) { 179 pjsip_msg_add_hdr(tdata->msg, pjsip_hdr_clone(tdata->pool, cap_hdr)); 181 pjsip_msg_add_hdr(tdata->msg, 182 (pjsip_hdr*) pjsip_hdr_clone(tdata->pool, cap_hdr)); 180 183 } 181 184 … … 183 186 cap_hdr = pjsip_evsub_get_allow_events_hdr(NULL); 184 187 if (cap_hdr) { 185 pjsip_msg_add_hdr(tdata->msg, pjsip_hdr_clone(tdata->pool, cap_hdr)); 188 pjsip_msg_add_hdr(tdata->msg, 189 (pjsip_hdr*) pjsip_hdr_clone(tdata->pool, cap_hdr)); 186 190 } 187 191 … … 1456 1460 1457 1461 /* Make sure id is in range. */ 1458 PJ_ASSERT_RETURN(id>=0 && id<PJ_ARRAY_SIZE(pjsua_var.tpdata), PJ_EINVAL); 1462 PJ_ASSERT_RETURN(id>=0 && id<(int)PJ_ARRAY_SIZE(pjsua_var.tpdata), 1463 PJ_EINVAL); 1459 1464 1460 1465 /* Make sure that transport exists */ … … 1524 1529 { 1525 1530 /* Make sure id is in range. */ 1526 PJ_ASSERT_RETURN(id>=0 && id<PJ_ARRAY_SIZE(pjsua_var.tpdata), PJ_EINVAL); 1531 PJ_ASSERT_RETURN(id>=0 && id<(int)PJ_ARRAY_SIZE(pjsua_var.tpdata), 1532 PJ_EINVAL); 1527 1533 1528 1534 /* Make sure that transport exists */ … … 1547 1553 1548 1554 /* Make sure id is in range. */ 1549 PJ_ASSERT_RETURN(id>=0 && id<PJ_ARRAY_SIZE(pjsua_var.tpdata), PJ_EINVAL); 1555 PJ_ASSERT_RETURN(id>=0 && id<(int)PJ_ARRAY_SIZE(pjsua_var.tpdata), 1556 PJ_EINVAL); 1550 1557 1551 1558 /* Make sure that transport exists */ … … 1640 1647 pjsip_hdr *new_hdr; 1641 1648 1642 new_hdr = pjsip_hdr_clone(tdata->pool, hdr);1649 new_hdr = (pjsip_hdr*) pjsip_hdr_clone(tdata->pool, hdr); 1643 1650 pjsip_msg_add_hdr(tdata->msg, new_hdr); 1644 1651 … … 1672 1679 pjsip_route_hdr *new_r; 1673 1680 1674 new_r = pjsip_hdr_clone(tdata->pool, r);1681 new_r = (pjsip_route_hdr*) pjsip_hdr_clone(tdata->pool, r); 1675 1682 pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*)new_r); 1676 1683 … … 1719 1726 return; 1720 1727 1721 pj_assert(tp_id >= 0 && tp_id < PJ_ARRAY_SIZE(pjsua_var.tpdata));1728 pj_assert(tp_id >= 0 && tp_id < (int)PJ_ARRAY_SIZE(pjsua_var.tpdata)); 1722 1729 tpdata = &pjsua_var.tpdata[tp_id]; 1723 1730 … … 1749 1756 if (!pool) return -1; 1750 1757 1751 url = pj_pool_alloc(pool, len+1);1758 url = (char*) pj_pool_alloc(pool, len+1); 1752 1759 pj_ansi_strcpy(url, c_url); 1753 1760
Note: See TracChangeset
for help on using the changeset viewer.