Changeset 1266 for pjproject/trunk/pjsip/src/pjsip-ua/sip_replaces.c
- Timestamp:
- May 11, 2007 3:14:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_replaces.c
r974 r1266 53 53 PJ_DEF(pjsip_replaces_hdr*) pjsip_replaces_hdr_create(pj_pool_t *pool) 54 54 { 55 pjsip_replaces_hdr *hdr = pj_pool_zalloc(pool, sizeof(*hdr));55 pjsip_replaces_hdr *hdr = PJ_POOL_ZALLOC_T(pool, pjsip_replaces_hdr); 56 56 hdr->type = PJSIP_H_OTHER; 57 57 hdr->name.ptr = "Replaces"; … … 109 109 const pjsip_replaces_hdr *rhs ) 110 110 { 111 pjsip_replaces_hdr *hdr = pj_pool_alloc(pool, sizeof(*hdr));111 pjsip_replaces_hdr *hdr = PJ_POOL_ALLOC_T(pool, pjsip_replaces_hdr); 112 112 pj_memcpy(hdr, rhs, sizeof(*hdr)); 113 113 pjsip_param_shallow_clone(pool, &hdr->other_param, &rhs->other_param); … … 145 145 hdr->early_only = PJ_TRUE; 146 146 } else { 147 pjsip_param *param = pj_pool_alloc(ctx->pool, sizeof(pjsip_param));147 pjsip_param *param = PJ_POOL_ALLOC_T(ctx->pool, pjsip_param); 148 148 param->name = pname; 149 149 param->value = pvalue; … … 319 319 pjsip_hdr *cloned; 320 320 321 cloned = pjsip_hdr_clone(tdata->pool, h);321 cloned = (pjsip_hdr*) pjsip_hdr_clone(tdata->pool, h); 322 322 PJ_ASSERT_RETURN(cloned, PJ_ENOMEM); 323 323
Note: See TracChangeset
for help on using the changeset viewer.