Changeset 1266 for pjproject/trunk/pjsip/src/test-pjsip/tsx_uac_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_uac_test.c
r974 r1266 365 365 PJ_LOG(3,(THIS_FILE, 366 366 " error: prev state is %s instead of %s", 367 pjsip_tsx_state_str( e->body.tsx_state.prev_state),367 pjsip_tsx_state_str((pjsip_tsx_state_e)e->body.tsx_state.prev_state), 368 368 pjsip_tsx_state_str(PJSIP_TSX_STATE_PROCEEDING))); 369 369 test_complete = -739; … … 548 548 struct pj_timer_entry *entry) 549 549 { 550 struct response *r = entry->user_data;550 struct response *r = (struct response*) entry->user_data; 551 551 pjsip_transport *tp = r->res_addr.transport; 552 552 … … 760 760 761 761 /* Schedule sending final response in couple of of secs. */ 762 r = pj_pool_alloc(tdata->pool, sizeof(*r));762 r = PJ_POOL_ALLOC_T(tdata->pool, struct response); 763 763 r->res_addr = res_addr; 764 764 r->tdata = tdata; … … 881 881 882 882 /* Schedule sending final response in couple of of secs. */ 883 r = pj_pool_alloc(tdata->pool, sizeof(*r));883 r = PJ_POOL_ALLOC_T(tdata->pool, struct response); 884 884 r->res_addr = res_addr; 885 885 r->tdata = tdata; … … 969 969 970 970 /* Set the branch param for test 1. */ 971 via = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL);971 via = (pjsip_via_hdr*) pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 972 972 via->branch_param = pj_str(branch_param); 973 973 … … 1098 1098 enabled = msg_logger_set_enabled(0); 1099 1099 1100 for (i=0; i< PJ_ARRAY_SIZE(sub_test); ++i) {1100 for (i=0; i<(int)PJ_ARRAY_SIZE(sub_test); ++i) { 1101 1101 1102 1102 PJ_LOG(3,(THIS_FILE, … … 1232 1232 1233 1233 1234 for (i=0; i< PJ_ARRAY_SIZE(delay); ++i) {1234 for (i=0; i<(int)PJ_ARRAY_SIZE(delay); ++i) { 1235 1235 1236 1236 PJ_LOG(3,(THIS_FILE, … … 1303 1303 1304 1304 /* Do the test. */ 1305 for (i=0; i< PJ_ARRAY_SIZE(delay); ++i) {1305 for (i=0; i<(int)PJ_ARRAY_SIZE(delay); ++i) { 1306 1306 1307 1307 if (test_param->type == PJSIP_TRANSPORT_LOOP_DGRAM) { … … 1344 1344 1345 1345 /* Get transport flag */ 1346 tp_flag = pjsip_transport_get_flag_from_type( test_param->type);1346 tp_flag = pjsip_transport_get_flag_from_type((pjsip_transport_type_e)test_param->type); 1347 1347 1348 1348 pj_ansi_sprintf(TARGET_URI, "sip:bob@127.0.0.1:%d;transport=%s",
Note: See TracChangeset
for help on using the changeset viewer.