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_uas_test.c

    r974 r1266  
    209209{ 
    210210    pjsip_transaction *tsx; 
    211     struct response *r = entry->user_data; 
     211    struct response *r = (struct response*) entry->user_data; 
    212212    pj_status_t status; 
    213213 
     
    277277    } 
    278278 
    279     r = pj_pool_alloc(tdata->pool, sizeof(*r)); 
     279    r = PJ_POOL_ALLOC_T(tdata->pool, struct response); 
    280280    pj_strdup(tdata->pool, &r->tsx_key, tsx_key); 
    281281    r->tdata = tdata; 
     
    285285    pj_time_val_normalize(&delay); 
    286286 
    287     t = pj_pool_zalloc(tdata->pool, sizeof(*t)); 
     287    t = PJ_POOL_ZALLOC_T(tdata->pool, pj_timer_entry); 
    288288    t->user_data = r; 
    289289    t->cb = &send_response_timer; 
     
    10971097                uri->transport_param = pj_str("loop-dgram"); 
    10981098 
    1099                 via = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
     1099                via = (pjsip_via_hdr*) pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
    11001100                via->branch_param = pj_str(TEST9_BRANCH_ID); 
    11011101 
     
    11981198 
    11991199    /* Set the branch param for test 1. */ 
    1200     via = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
     1200    via = (pjsip_via_hdr*) pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
    12011201    via->branch_param = pj_str(branch_param); 
    12021202 
     
    14721472    int i, status; 
    14731473 
    1474     for (i=0; i<PJ_ARRAY_SIZE(tests); ++i) { 
     1474    for (i=0; i<(int)PJ_ARRAY_SIZE(tests); ++i) { 
    14751475        pj_time_val fail_time, end_test, now; 
    14761476 
     
    15331533 
    15341534    test_param = param; 
    1535     tp_flag = pjsip_transport_get_flag_from_type(param->type); 
     1535    tp_flag = pjsip_transport_get_flag_from_type((pjsip_transport_type_e)param->type); 
    15361536 
    15371537    pj_ansi_sprintf(TARGET_URI, "sip:bob@127.0.0.1:%d;transport=%s",  
Note: See TracChangeset for help on using the changeset viewer.