diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-04-28 19:38:43 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-04-28 19:38:43 +0000 |
commit | 7a0ee1a7208ddfe8575d1f1179f66fda2fa99339 (patch) | |
tree | a21e4846fd4d08aa06d2f5424cf52042d6d1d9e1 /pjsip/src/test/tsx_uac_test.c | |
parent | cd00a93db99d842d8fcadb60aeb20ba47b4b4165 (diff) |
Ticket #706: Merged branch vs-reorg2 into trunk:
- Currently supported platforms are: Win32, WM6 std & pro, WM5 SP & PPC, WM2003 SP & PPC.
- Added libpjproject into solution, this is a single 'combo' library that bundles all PJSIP libraries.
- Cleaned up most of compile warnings, note that warning level of libgsmcodec has been reduced from 4 to 3.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2660 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/test/tsx_uac_test.c')
-rw-r--r-- | pjsip/src/test/tsx_uac_test.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pjsip/src/test/tsx_uac_test.c b/pjsip/src/test/tsx_uac_test.c index f725114a..f6f9c2fe 100644 --- a/pjsip/src/test/tsx_uac_test.c +++ b/pjsip/src/test/tsx_uac_test.c @@ -551,6 +551,8 @@ static void send_response_callback( pj_timer_heap_t *timer_heap, struct response *r = (struct response*) entry->user_data; pjsip_transport *tp = r->res_addr.transport; + PJ_UNUSED_ARG(timer_heap); + pjsip_endpt_send_response(endpt, &r->res_addr, r->tdata, NULL, NULL); if (tp) pjsip_transport_dec_ref(tp); @@ -564,6 +566,8 @@ static void terminate_tsx_callback( pj_timer_heap_t *timer_heap, pjsip_transaction *tsx = pjsip_tsx_layer_find_tsx(&m->tsx_key, PJ_FALSE); int status_code = entry->id; + PJ_UNUSED_ARG(timer_heap); + if (tsx) { pjsip_tsx_terminate(tsx, status_code); } @@ -947,6 +951,8 @@ static int perform_tsx_test(int dummy, char *target_uri, char *from_uri, pj_time_val timeout; pj_status_t status; + PJ_UNUSED_ARG(dummy); + PJ_LOG(3,(THIS_FILE, " please standby, this will take at most %d seconds..", test_time)); @@ -1077,7 +1083,7 @@ static int perform_tsx_test(int dummy, char *target_uri, char *from_uri, */ static int tsx_uac_retransmit_test(void) { - int status, enabled; + int status = 0, enabled; int i; struct { const pjsip_method *method; @@ -1141,7 +1147,7 @@ static int tsx_uac_retransmit_test(void) */ static int tsx_resolve_error_test(void) { - int status; + int status = 0; PJ_LOG(3,(THIS_FILE, " test2: resolve error test")); @@ -1226,7 +1232,7 @@ static int tsx_retransmit_fail_test(void) { int i; unsigned delay[] = {0, 10}; - pj_status_t status; + pj_status_t status = PJ_SUCCESS; PJ_LOG(3,(THIS_FILE, " test4: transport fails after several retransmissions test")); @@ -1297,7 +1303,7 @@ static int perform_generic_test( const char *title, char *branch_id, const pjsip_method *method) { - int i, status; + int i, status = 0; unsigned delay[] = { 1, 200 }; PJ_LOG(3,(THIS_FILE, " %s", title)); |