- Fix #1253: unused variable in edns-subnet/addrtree.c:getbit().

git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4126 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
ralph 2017-04-18 13:25:09 +00:00
parent e61bcbfd71
commit 85a5a277c6
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
18 April 2017: Ralph
- Fix #1252: more indentation inconsistencies.
- Fix #1253: unused variable in edns-subnet/addrtree.c:getbit().
13 April 2017: Ralph
- Added ECS unit test (from Manu Bretelle).

View File

@ -302,6 +302,7 @@ static int
getbit(const addrkey_t *addr, addrlen_t addrlen, addrlen_t n)
{
log_assert(addrlen > n);
(void)addrlen;
return (int)(addr[n/KEYWIDTH]>>((KEYWIDTH-1)-(n%KEYWIDTH))) & 1;
}