mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-02 21:09:35 -05:00
Review fix: remove unused variables.
This commit is contained in:
parent
4770359384
commit
a83fc176cc
1 changed files with 2 additions and 4 deletions
|
|
@ -155,16 +155,14 @@ reuse_cmp_addrportssl(const void* key1, const void* key2)
|
|||
int
|
||||
reuse_cmp(const void* key1, const void* key2)
|
||||
{
|
||||
struct reuse_tcp* r1 = (struct reuse_tcp*)key1;
|
||||
struct reuse_tcp* r2 = (struct reuse_tcp*)key2;
|
||||
int r;
|
||||
r = reuse_cmp_addrportssl(key1, key2);
|
||||
if(r != 0)
|
||||
return r;
|
||||
|
||||
/* compare ptr value */
|
||||
if(r1 < r2) return -1;
|
||||
if(r1 > r2) return 1;
|
||||
if(key1 < key2) return -1;
|
||||
if(key1 > key2) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue