Changeset 1241 for pjproject/trunk/pjsip/src/pjsip-simple/presence_body.c
- Timestamp:
- May 2, 2007 5:14:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/presence_body.c
r974 r1241 43 43 char *buf, pj_size_t size) 44 44 { 45 return pj_xml_print(msg_body->data, buf, size, PJ_TRUE); 45 return pj_xml_print((const pj_xml_node*)msg_body->data, buf, size, 46 PJ_TRUE); 46 47 } 47 48 … … 53 54 { 54 55 PJ_UNUSED_ARG(len); 55 return pj_xml_clone( pool, data);56 return pj_xml_clone( pool, (const pj_xml_node*) data); 56 57 } 57 58 … … 101 102 } 102 103 103 body = pj_pool_zalloc(pool, sizeof(pjsip_msg_body));104 body = PJ_POOL_ZALLOC_T(pool, pjsip_msg_body); 104 105 body->data = pidf; 105 106 body->content_type.type = STR_APPLICATION; … … 140 141 pjxpidf_set_status( xpidf, PJ_FALSE); 141 142 142 body = pj_pool_zalloc(pool, sizeof(pjsip_msg_body));143 body = PJ_POOL_ZALLOC_T(pool, pjsip_msg_body); 143 144 body->data = xpidf; 144 145 body->content_type.type = STR_APPLICATION; … … 165 166 166 167 pidf = pjpidf_parse(rdata->tp_info.pool, 167 rdata->msg_info.msg->body->data,168 (char*)rdata->msg_info.msg->body->data, 168 169 rdata->msg_info.msg->body->len); 169 170 if (pidf == NULL) … … 210 211 211 212 xpidf = pjxpidf_parse(rdata->tp_info.pool, 212 rdata->msg_info.msg->body->data,213 (char*)rdata->msg_info.msg->body->data, 213 214 rdata->msg_info.msg->body->len); 214 215 if (xpidf == NULL)
Note: See TracChangeset
for help on using the changeset viewer.