Changeset 4537 for pjproject/trunk/pjsip/src/test/transport_test.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test/transport_test.c
r3553 r4537 164 164 if (sent < 1) { 165 165 /* Obtain the error code. */ 166 send_status = -sent;166 send_status = (int)-sent; 167 167 } else { 168 168 send_status = PJ_SUCCESS; … … 416 416 } 417 417 timeout_delay.sec = 100; timeout_delay.msec = 0; 418 rt_test_data[thread_id].timeout_timer.user_data = (void*) 1;418 rt_test_data[thread_id].timeout_timer.user_data = (void*)(pj_ssize_t)1; 419 419 pjsip_endpt_schedule_timer(endpt, &rt_test_data[thread_id].timeout_timer, 420 420 &timeout_delay); … … 446 446 pj_time_val tx_delay = { 0, 0 }; 447 447 pj_assert(rt_test_data[thread_id].tx_timer.user_data == NULL); 448 rt_test_data[thread_id].tx_timer.user_data = (void*) 1;448 rt_test_data[thread_id].tx_timer.user_data = (void*)(pj_ssize_t)1; 449 449 pjsip_endpt_schedule_timer(endpt, &rt_test_data[thread_id].tx_timer, 450 450 &tx_delay); … … 469 469 if (rt_test_data[entry->id].tx_timer.user_data == NULL) { 470 470 pj_time_val delay = { 0, 0 }; 471 rt_test_data[entry->id].tx_timer.user_data = (void*) 1;471 rt_test_data[entry->id].tx_timer.user_data = (void*)(pj_ssize_t)1; 472 472 pjsip_endpt_schedule_timer(endpt, &rt_test_data[entry->id].tx_timer, 473 473 &delay); … … 586 586 587 587 /* Create thread, suspended. */ 588 status = pj_thread_create(pool, "rttest%p", &rt_worker_thread, (void*)(long)i, 0, 588 status = pj_thread_create(pool, "rttest%p", &rt_worker_thread, 589 (void*)(pj_ssize_t)i, 0, 589 590 PJ_THREAD_SUSPENDED, &rt_test_data[i].thread); 590 591 if (status != PJ_SUCCESS) { … … 600 601 601 602 /* Schedule first message transmissions. */ 602 rt_test_data[i].tx_timer.user_data = (void*) 1;603 rt_test_data[i].tx_timer.user_data = (void*)(pj_ssize_t)1; 603 604 pjsip_endpt_schedule_timer(endpt, &rt_test_data[i].tx_timer, &delay); 604 605 }
Note: See TracChangeset
for help on using the changeset viewer.