Changeset 1241 for pjproject/trunk/pjsip/src/pjsip-simple/iscomposing.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/iscomposing.c
r974 r1241 96 96 if (is_composing && refresh > 1 && refresh < 3601) { 97 97 node = pj_xml_node_new(pool, &STR_REFRESH); 98 node->content.ptr = pj_pool_alloc(pool, 10);98 node->content.ptr = (char*) pj_pool_alloc(pool, 10); 99 99 node->content.slen = pj_utoa(refresh, node->content.ptr); 100 100 pj_xml_add_node(doc, node); … … 114 114 char *buf, pj_size_t size) 115 115 { 116 return pj_xml_print(msg_body->data, buf, size, PJ_TRUE); 116 return pj_xml_print((const pj_xml_node*)msg_body->data, buf, size, 117 PJ_TRUE); 117 118 } 118 119 … … 124 125 { 125 126 PJ_UNUSED_ARG(len); 126 return pj_xml_clone( pool, data);127 return pj_xml_clone( pool, (const pj_xml_node*)data); 127 128 } 128 129 … … 144 145 145 146 146 body = pj_pool_zalloc(pool, sizeof(pjsip_msg_body));147 body = PJ_POOL_ZALLOC_T(pool, pjsip_msg_body); 147 148 body->content_type.type = STR_MIME_TYPE; 148 149 body->content_type.subtype = STR_MIME_SUBTYPE;
Note: See TracChangeset
for help on using the changeset viewer.