diff options
author | Riza Sulistyo <riza@teluu.com> | 2013-03-05 03:12:32 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2013-03-05 03:12:32 +0000 |
commit | cd32d40cb26a2823cfc9805f5c76bc3711864196 (patch) | |
tree | 838cf8019c64a6f044ded9539be76678a9e8b87c /pjnath/src/pjnath-test/ice_test.c | |
parent | 9df2311a5f5f9211f24ad03e13c161ec5d6429bf (diff) |
Misc (re #1559): fixed compile errors/warnings on MSVC
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4412 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/src/pjnath-test/ice_test.c')
-rw-r--r-- | pjnath/src/pjnath-test/ice_test.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pjnath/src/pjnath-test/ice_test.c b/pjnath/src/pjnath-test/ice_test.c index 0a4c8a3e..66d48314 100644 --- a/pjnath/src/pjnath-test/ice_test.c +++ b/pjnath/src/pjnath-test/ice_test.c @@ -467,7 +467,8 @@ static int check_pair(const struct ice_ept *ept1, const struct ice_ept *ept2, break; \ } \ PJ_TIME_VAL_SUB(t, t0); \ - if (PJ_TIME_VAL_MSEC(t) >= (timeout)) break; \ + if ((unsigned)PJ_TIME_VAL_MSEC(t) >= (timeout)) \ + break; \ } \ } @@ -1015,7 +1016,7 @@ int ice_one_conc_test(pj_stun_config *stun_cfg, int err_quit) int ice_conc_test(void) { - const int LOOP = 100; + const unsigned LOOP = 100; pj_pool_t *pool; pj_stun_config stun_cfg; unsigned i; @@ -1034,6 +1035,9 @@ int ice_conc_test(void) if (rc) break; } + + /* Avoid compiler warning */ + goto on_return; on_return: destroy_stun_config(&stun_cfg); |