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/test-pjsip/tsx_bench.c

    r974 r1266  
    5454 
    5555    /* Create transaction array */ 
    56     tsx = pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 
     56    tsx = (pjsip_transaction**) pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 
    5757 
    5858    pj_bzero(&mod_tsx_user, sizeof(mod_tsx_user)); 
     
    131131    rdata.tp_info.pool = request->pool; 
    132132    rdata.msg_info.msg = request->msg; 
    133     rdata.msg_info.from = pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
    134     rdata.msg_info.to = pjsip_msg_find_hdr(request->msg, PJSIP_H_TO, NULL); 
    135     rdata.msg_info.cseq = pjsip_msg_find_hdr(request->msg, PJSIP_H_CSEQ, NULL); 
    136     rdata.msg_info.cid = pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
     133    rdata.msg_info.from = (pjsip_from_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
     134    rdata.msg_info.to = (pjsip_to_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_TO, NULL); 
     135    rdata.msg_info.cseq = (pjsip_cseq_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_CSEQ, NULL); 
     136    rdata.msg_info.cid = (pjsip_cid_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
    137137    rdata.msg_info.via = via; 
    138138     
     
    148148 
    149149    /* Create transaction array */ 
    150     tsx = pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 
     150    tsx = (pjsip_transaction**) pj_pool_zalloc(request->pool, working_set * sizeof(pj_pool_t*)); 
    151151 
    152152    pj_bzero(&mod_tsx_user, sizeof(mod_tsx_user)); 
Note: See TracChangeset for help on using the changeset viewer.