mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: Clod Patry Review: https://reviewboard.asterisk.org/r/1651 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -127,9 +127,9 @@ static int get_local_address(struct ast_sockaddr *ourip)
|
||||
struct ifaddrs *ifap, *ifaphead;
|
||||
int rtnerr;
|
||||
const struct sockaddr_in *sin;
|
||||
int best_score = -100;
|
||||
#endif /* BSD_OR_LINUX */
|
||||
struct in_addr best_addr;
|
||||
int best_score = -100;
|
||||
memset(&best_addr, 0, sizeof(best_addr));
|
||||
|
||||
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__) || defined(__Darwin__) || defined(__GLIBC__)
|
||||
|
||||
Reference in New Issue
Block a user