mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Avoid warning in broken_state_count_compare
This commit is contained in:
parent
597da4989e
commit
9a6642f6f5
@ -236,7 +236,12 @@ static int
|
||||
broken_state_count_compare(const void **a_ptr, const void **b_ptr)
|
||||
{
|
||||
const broken_state_count_t *a = *a_ptr, *b = *b_ptr;
|
||||
return b->count - a->count;
|
||||
if (b->count < a->count)
|
||||
return -1;
|
||||
else if (b->count == a->count)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** Upper limit on the number of different states to report for connection
|
||||
|
Loading…
Reference in New Issue
Block a user