mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
sort: Get rid of global comparer
This commit is contained in:
parent
137c1d37c2
commit
39e1fb9e5a
2 changed files with 12 additions and 18 deletions
|
|
@ -223,11 +223,10 @@ int leasecomp(const void *restrict a, const void *restrict b);
|
|||
int rangecomp(const void *__restrict r1, const void *__restrict r2)
|
||||
__attribute__ ((nonnull(1, 2)));
|
||||
/* sort function pointer and functions */
|
||||
int (*comparer) (struct range_t *r1, struct range_t *r2);
|
||||
typedef int (*comparer_t) (struct range_t *r1, struct range_t *r2);
|
||||
unsigned long int ret_percent(struct range_t r);
|
||||
unsigned long int ret_tc(struct range_t r);
|
||||
unsigned long int ret_tcperc(struct range_t r);
|
||||
void field_selector(char c);
|
||||
void mergesort_ranges(struct range_t *__restrict orig, int size,
|
||||
struct range_t *__restrict temp)
|
||||
__attribute__ ((nonnull(1, 3)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue