Changeset 1266 for pjproject/trunk/pjsip/src/test-pjsip/tsx_uas_test.c
- Timestamp:
- May 11, 2007 3:14:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/tsx_uas_test.c
r974 r1266 209 209 { 210 210 pjsip_transaction *tsx; 211 struct response *r = entry->user_data;211 struct response *r = (struct response*) entry->user_data; 212 212 pj_status_t status; 213 213 … … 277 277 } 278 278 279 r = pj_pool_alloc(tdata->pool, sizeof(*r));279 r = PJ_POOL_ALLOC_T(tdata->pool, struct response); 280 280 pj_strdup(tdata->pool, &r->tsx_key, tsx_key); 281 281 r->tdata = tdata; … … 285 285 pj_time_val_normalize(&delay); 286 286 287 t = pj_pool_zalloc(tdata->pool, sizeof(*t));287 t = PJ_POOL_ZALLOC_T(tdata->pool, pj_timer_entry); 288 288 t->user_data = r; 289 289 t->cb = &send_response_timer; … … 1097 1097 uri->transport_param = pj_str("loop-dgram"); 1098 1098 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); 1100 1100 via->branch_param = pj_str(TEST9_BRANCH_ID); 1101 1101 … … 1198 1198 1199 1199 /* 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); 1201 1201 via->branch_param = pj_str(branch_param); 1202 1202 … … 1472 1472 int i, status; 1473 1473 1474 for (i=0; i< PJ_ARRAY_SIZE(tests); ++i) {1474 for (i=0; i<(int)PJ_ARRAY_SIZE(tests); ++i) { 1475 1475 pj_time_val fail_time, end_test, now; 1476 1476 … … 1533 1533 1534 1534 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); 1536 1536 1537 1537 pj_ansi_sprintf(TARGET_URI, "sip:bob@127.0.0.1:%d;transport=%s",
Note: See TracChangeset
for help on using the changeset viewer.