diff options
author | Riza Sulistyo <riza@teluu.com> | 2014-08-26 05:14:13 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2014-08-26 05:14:13 +0000 |
commit | 9df42d2e02f33db21f4a92af48be24922ab268a9 (patch) | |
tree | 9e2b16fbd25465e72ca3648a927a30ad3da311f9 /pjlib | |
parent | bea0d8c1a1e85e55ff32d3ce8d6a13b7e168ae1c (diff) |
Misc (re #1751): Avoid confusion caused by double variable declaration. (Thanks Itay Bianco for the report).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4905 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/src/pj/sock_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pjlib/src/pj/sock_common.c b/pjlib/src/pj/sock_common.c index c9e26182..00f13e3c 100644 --- a/pjlib/src/pj/sock_common.c +++ b/pjlib/src/pj/sock_common.c @@ -802,7 +802,6 @@ PJ_DEF(pj_status_t) pj_gethostip(int af, pj_sockaddr *addr) } #else PJ_UNUSED_ARG(ai); - PJ_UNUSED_ARG(count); #endif /* Get default interface (interface for default route) */ @@ -830,7 +829,7 @@ PJ_DEF(pj_status_t) pj_gethostip(int af, pj_sockaddr *addr) /* Enumerate IP interfaces */ if (cand_cnt < PJ_ARRAY_SIZE(cand_addr)) { unsigned start_if = cand_cnt; - unsigned count = PJ_ARRAY_SIZE(cand_addr) - start_if; + count = PJ_ARRAY_SIZE(cand_addr) - start_if; status = pj_enum_ip_interface(af, &count, &cand_addr[start_if]); if (status == PJ_SUCCESS && count) { |