diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2011-07-19 08:40:20 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2011-07-19 08:40:20 +0000 |
commit | 262defe8ad75325065fd64ea5d3a03a59c5f3039 (patch) | |
tree | 02c1f3392feb9bc494107f530634551d566ebc40 /pjlib-util | |
parent | f9cf39df6f56b0c550ea97d9a024e2fc32d55c0e (diff) |
Re #1326:
- Fixed compile warnings on vs2005
- Fixed compile error when PJMEDIA_HAS_VIDEO set to 0 on vs2005
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3666 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util')
-rw-r--r-- | pjlib-util/src/pjlib-util/stun_simple_client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjlib-util/src/pjlib-util/stun_simple_client.c b/pjlib-util/src/pjlib-util/stun_simple_client.c index af597fc5..e4f0b0fe 100644 --- a/pjlib-util/src/pjlib-util/stun_simple_client.c +++ b/pjlib-util/src/pjlib-util/stun_simple_client.c @@ -44,7 +44,7 @@ PJ_DEF(pj_status_t) pjstun_get_mapped_addr( pj_pool_factory *pf, { unsigned srv_cnt; pj_sockaddr_in srv_addr[2]; - int i, j, send_cnt = 0; + int i, send_cnt = 0; pj_pool_t *pool; struct query_rec { struct { @@ -123,6 +123,7 @@ PJ_DEF(pj_status_t) pjstun_get_mapped_addr( pj_pool_factory *pf, /* Send messages to servers that has not given us response. */ for (i=0; i<sock_cnt && status==PJ_SUCCESS; ++i) { + unsigned j; for (j=0; j<srv_cnt && status==PJ_SUCCESS; ++j) { pjstun_msg_hdr *msg_hdr = (pjstun_msg_hdr*) out_msg; pj_ssize_t sent_len; |