Changeset 1241 for pjproject/trunk/pjsip/src/pjsip-simple/xpidf.c
- Timestamp:
- May 2, 2007 5:14:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/xpidf.c
r974 r1241 41 41 pj_xml_node *node; 42 42 43 node = pj_pool_alloc(pool, sizeof(pj_xml_node));43 node = PJ_POOL_ALLOC_T(pool, pj_xml_node); 44 44 pj_list_init(&node->attr_head); 45 45 pj_list_init(&node->node_head); … … 54 54 const pj_str_t *value) 55 55 { 56 pj_xml_attr *attr = pj_pool_alloc(pool, sizeof(*attr));56 pj_xml_attr *attr = PJ_POOL_ALLOC_T(pool, pj_xml_attr); 57 57 attr->name = *name; 58 58 pj_strdup(pool, &attr->value, value); … … 80 80 81 81 /* uri attribute */ 82 uri.ptr = pj_pool_alloc(pool, uri_cstr->slen + STR_SUBSCRIBE_PARAM.slen); 82 uri.ptr = (char*) pj_pool_alloc(pool, uri_cstr->slen + 83 STR_SUBSCRIBE_PARAM.slen); 83 84 pj_strcpy( &uri, uri_cstr); 84 85 pj_strcat( &uri, &STR_SUBSCRIBE_PARAM);
Note: See TracChangeset
for help on using the changeset viewer.