mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix #1253: unused variable in edns-subnet/addrtree.c:getbit().
git-svn-id: file:///svn/unbound/trunk@4126 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
89c2383c71
commit
dae84a96fb
2 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
18 April 2017: Ralph
|
18 April 2017: Ralph
|
||||||
- Fix #1252: more indentation inconsistencies.
|
- Fix #1252: more indentation inconsistencies.
|
||||||
|
- Fix #1253: unused variable in edns-subnet/addrtree.c:getbit().
|
||||||
|
|
||||||
13 April 2017: Ralph
|
13 April 2017: Ralph
|
||||||
- Added ECS unit test (from Manu Bretelle).
|
- Added ECS unit test (from Manu Bretelle).
|
||||||
|
|
|
||||||
|
|
@ -302,6 +302,7 @@ static int
|
||||||
getbit(const addrkey_t *addr, addrlen_t addrlen, addrlen_t n)
|
getbit(const addrkey_t *addr, addrlen_t addrlen, addrlen_t n)
|
||||||
{
|
{
|
||||||
log_assert(addrlen > n);
|
log_assert(addrlen > n);
|
||||||
|
(void)addrlen;
|
||||||
return (int)(addr[n/KEYWIDTH]>>((KEYWIDTH-1)-(n%KEYWIDTH))) & 1;
|
return (int)(addr[n/KEYWIDTH]>>((KEYWIDTH-1)-(n%KEYWIDTH))) & 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue