diff options
author | Matthew Jordan <mjordan@digium.com> | 2012-10-07 17:33:38 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2012-10-07 17:33:38 +0000 |
commit | 6b5677a41d519e6c6da330e1ce94dff9b09c0701 (patch) | |
tree | c20275cd90d1f69f17470dc9fc10a8893ecedb43 /main | |
parent | bd36827e98b79615c8ff7daa435e3a4c207ffce6 (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/acl.c b/main/acl.c index 236d8b6c4..148cb0825 100644 --- a/main/acl.c +++ b/main/acl.c @@ -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__) |