mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
Version 2.5
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
d28d8feb4f
commit
8904b5b82c
21 changed files with 708 additions and 6816 deletions
|
|
@ -25,33 +25,6 @@
|
|||
|
||||
#include "dhcpd-pools.h"
|
||||
|
||||
/* A simple (predicate-like) integer comparison function (for qsort) */
|
||||
int
|
||||
intcomp (const void *x, const void *y)
|
||||
{
|
||||
if (*(unsigned long int *) x < *(unsigned long int *) y)
|
||||
return -1;
|
||||
else if (*(unsigned long int *) y < *(unsigned long int *) x)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* A simple (predicate-like) range structure comparison function
|
||||
* (for qsort) */
|
||||
int
|
||||
rangecomp (const void *r1, const void *r2)
|
||||
{
|
||||
if ((((struct range_t *) r1)->first_ip) <
|
||||
(((struct range_t *) r2)->first_ip))
|
||||
return -1;
|
||||
else if ((((struct range_t *) r2)->first_ip) <
|
||||
(((struct range_t *) r1)->first_ip))
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Clean up data */
|
||||
int
|
||||
prepare_data (void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue