Ignore:
Timestamp:
May 11, 2007 3:14:34 PM (14 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/txdata_test.c

    r974 r1266  
    445445 
    446446    /* Fill up the Via header to prevent syntax error on parsing */ 
    447     via = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
     447    via = (pjsip_via_hdr*) pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
    448448    via->transport = pj_str("TCP"); 
    449449    via->sent_by.host = pj_str("127.0.0.1"); 
     
    708708    via->branch_param = pj_str("012345678901234567890123456789"); 
    709709    via->recvd_param = pj_str("192.168.0.7"); 
    710     pjsip_msg_insert_first_hdr(request->msg, pjsip_hdr_clone(request->pool, via)); 
    711     pjsip_msg_insert_first_hdr(request->msg, pjsip_hdr_clone(request->pool, via)); 
     710    pjsip_msg_insert_first_hdr(request->msg, (pjsip_hdr*) pjsip_hdr_clone(request->pool, via)); 
     711    pjsip_msg_insert_first_hdr(request->msg, (pjsip_hdr*) pjsip_hdr_clone(request->pool, via)); 
    712712    pjsip_msg_insert_first_hdr(request->msg, (pjsip_hdr*)via); 
    713713     
     
    717717    rdata.tp_info.pool = request->pool; 
    718718    rdata.msg_info.msg = request->msg; 
    719     rdata.msg_info.from = pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
    720     rdata.msg_info.to = pjsip_msg_find_hdr(request->msg, PJSIP_H_TO, NULL); 
    721     rdata.msg_info.cseq = pjsip_msg_find_hdr(request->msg, PJSIP_H_CSEQ, NULL); 
    722     rdata.msg_info.cid = pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
     719    rdata.msg_info.from = (pjsip_from_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
     720    rdata.msg_info.to = (pjsip_to_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_TO, NULL); 
     721    rdata.msg_info.cseq = (pjsip_cseq_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_CSEQ, NULL); 
     722    rdata.msg_info.cid = (pjsip_cid_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 
    723723    rdata.msg_info.via = via; 
    724724 
Note: See TracChangeset for help on using the changeset viewer.