Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (18 years ago)
Author:
bennylp
Message:

HUGE changeset to make the rest of the libraries compile with C++ mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_replaces.c

    r974 r1266  
    5353PJ_DEF(pjsip_replaces_hdr*) pjsip_replaces_hdr_create(pj_pool_t *pool) 
    5454{ 
    55     pjsip_replaces_hdr *hdr = pj_pool_zalloc(pool, sizeof(*hdr)); 
     55    pjsip_replaces_hdr *hdr = PJ_POOL_ZALLOC_T(pool, pjsip_replaces_hdr); 
    5656    hdr->type = PJSIP_H_OTHER; 
    5757    hdr->name.ptr = "Replaces"; 
     
    109109                            const pjsip_replaces_hdr *rhs ) 
    110110{ 
    111     pjsip_replaces_hdr *hdr = pj_pool_alloc(pool, sizeof(*hdr)); 
     111    pjsip_replaces_hdr *hdr = PJ_POOL_ALLOC_T(pool, pjsip_replaces_hdr); 
    112112    pj_memcpy(hdr, rhs, sizeof(*hdr)); 
    113113    pjsip_param_shallow_clone(pool, &hdr->other_param, &rhs->other_param); 
     
    145145            hdr->early_only = PJ_TRUE; 
    146146        } 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); 
    148148            param->name = pname; 
    149149            param->value = pvalue; 
     
    319319                pjsip_hdr *cloned; 
    320320 
    321                 cloned = pjsip_hdr_clone(tdata->pool, h); 
     321                cloned = (pjsip_hdr*) pjsip_hdr_clone(tdata->pool, h); 
    322322                PJ_ASSERT_RETURN(cloned, PJ_ENOMEM); 
    323323 
Note: See TracChangeset for help on using the changeset viewer.