diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-05-02 05:14:29 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-05-02 05:14:29 +0000 |
commit | 67ecaf91d4e3383af948d75df8164436c7116bbc (patch) | |
tree | 6ce7ca1c09c55433846056b434f32e0918d3d03d /pjsip/src/pjsip-simple/iscomposing.c | |
parent | 682ee6718afa661df775bd44b4fdf89344ec67b2 (diff) |
Ported PJSIP and PJSIP-SIMPLE to Symbian
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1241 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsip-simple/iscomposing.c')
-rw-r--r-- | pjsip/src/pjsip-simple/iscomposing.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pjsip/src/pjsip-simple/iscomposing.c b/pjsip/src/pjsip-simple/iscomposing.c index 7db421e7..d49fae4e 100644 --- a/pjsip/src/pjsip-simple/iscomposing.c +++ b/pjsip/src/pjsip-simple/iscomposing.c @@ -95,7 +95,7 @@ PJ_DEF(pj_xml_node*) pjsip_iscomposing_create_xml( pj_pool_t *pool, /* Add refresh, if any. */ if (is_composing && refresh > 1 && refresh < 3601) { node = pj_xml_node_new(pool, &STR_REFRESH); - node->content.ptr = pj_pool_alloc(pool, 10); + node->content.ptr = (char*) pj_pool_alloc(pool, 10); node->content.slen = pj_utoa(refresh, node->content.ptr); pj_xml_add_node(doc, node); } @@ -113,7 +113,8 @@ PJ_DEF(pj_xml_node*) pjsip_iscomposing_create_xml( pj_pool_t *pool, static int xml_print_body( struct pjsip_msg_body *msg_body, char *buf, pj_size_t size) { - return pj_xml_print(msg_body->data, buf, size, PJ_TRUE); + return pj_xml_print((const pj_xml_node*)msg_body->data, buf, size, + PJ_TRUE); } @@ -123,7 +124,7 @@ static int xml_print_body( struct pjsip_msg_body *msg_body, static void* xml_clone_data(pj_pool_t *pool, const void *data, unsigned len) { PJ_UNUSED_ARG(len); - return pj_xml_clone( pool, data); + return pj_xml_clone( pool, (const pj_xml_node*)data); } @@ -143,7 +144,7 @@ PJ_DEF(pjsip_msg_body*) pjsip_iscomposing_create_body( pj_pool_t *pool, return NULL; - body = pj_pool_zalloc(pool, sizeof(pjsip_msg_body)); + body = PJ_POOL_ZALLOC_T(pool, pjsip_msg_body); body->content_type.type = STR_MIME_TYPE; body->content_type.subtype = STR_MIME_SUBTYPE; |