mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-28 18:51:30 +00:00
Trivial patch to make 'best_score' defined for all architectures.
Fixes trivial build error on Solaris: acl.c: In function `get_local_address': acl.c:196: error: `best_score' undeclared (first use in this function) acl.c:196: error: (Each undeclared identifier is reported only once acl.c:196: error: for each function it appears in.) make[2]: *** [acl.o] Error 1 (issue ASTERISK-20366) Reported by: Ben Klang Tested by: Ben Klang patches: 0002-main-acl.c-Trivial.-best_score-should-be-defined-for.patch by Shaun Ruffell (license 5417) ........ Merged revisions 374632 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -131,9 +131,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