[asterisk-commits] mjordan: branch 11 r374632 - /branches/11/main/acl.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Oct 7 12:31:58 CDT 2012
Author: mjordan
Date: Sun Oct 7 12:31:53 2012
New Revision: 374632
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374632
Log:
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)
Modified:
branches/11/main/acl.c
Modified: branches/11/main/acl.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/acl.c?view=diff&rev=374632&r1=374631&r2=374632
==============================================================================
--- branches/11/main/acl.c (original)
+++ branches/11/main/acl.c Sun Oct 7 12:31:53 2012
@@ -131,9 +131,9 @@
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__)
More information about the asterisk-commits
mailing list