mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
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:
parent
965875d20b
commit
e09f655a7b
6 changed files with 38 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue