add appropriate sorting function for struct leases_t

The HASH_SORT in analyze needs this.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2014-08-09 19:26:29 +01:00
parent 965875d20b
commit e09f655a7b
6 changed files with 38 additions and 1 deletions

View file

@ -51,7 +51,7 @@
int prepare_data(void)
{
/* Sort leases */
HASH_SORT(leases, ipcomp);
HASH_SORT(leases, leasecomp);
/* Sort ranges */
qsort(ranges, (size_t)num_ranges, sizeof(struct range_t), &rangecomp);
return 0;