diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2015-03-27 06:17:27 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2015-03-27 06:17:27 +0000 |
commit | 32669005e5809e7f0825bf3b0d0e79a7e30e0abf (patch) | |
tree | dee3037a378929be3e83664b8d9d3bfcb7ce362b /pjnath | |
parent | 51e1fcf85d019d80cb0b827ce7380a2c7ee9027f (diff) |
Re #1828: Fixed misc compile warnings (on iOS).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5035 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath')
-rw-r--r-- | pjnath/src/pjnath/ice_strans.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c index b016e8f1..c750e309 100644 --- a/pjnath/src/pjnath/ice_strans.c +++ b/pjnath/src/pjnath/ice_strans.c @@ -851,8 +851,7 @@ PJ_DEF(pj_status_t) pj_ice_strans_init_ice(pj_ice_strans *ice_st, * type priority to ICE session so that SRFLX candidates will get * checked first. */ - if (ice_st->comp[0]->default_cand >= 0 && - ice_st->comp[0]->cand_list[ice_st->comp[0]->default_cand].type + if (ice_st->comp[0]->cand_list[ice_st->comp[0]->default_cand].type == PJ_ICE_CAND_TYPE_SRFLX) { pj_ice_sess_set_prefs(ice_st->ice, srflx_pref_table); @@ -1040,7 +1039,7 @@ PJ_DEF(pj_status_t) pj_ice_strans_get_def_cand( pj_ice_strans *ice_st, pj_memcpy(cand, valid_pair->lcand, sizeof(pj_ice_sess_cand)); } else { pj_ice_strans_comp *comp = ice_st->comp[comp_id - 1]; - pj_assert(comp->default_cand>=0 && comp->default_cand<comp->cand_cnt); + pj_assert(comp->default_cand<comp->cand_cnt); pj_memcpy(cand, &comp->cand_list[comp->default_cand], sizeof(pj_ice_sess_cand)); } |