mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 00:37:01 +00:00
tools: add indent command configuration file
And reindent all files. Reference: http://www.gnu.org/software/indent/ Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
761c9560d7
commit
6684772550
6 changed files with 48 additions and 38 deletions
|
|
@ -42,7 +42,8 @@
|
|||
#include "dhcpd-pools.h"
|
||||
|
||||
/* Clean up data */
|
||||
static int ip_sort(const struct leases_t *restrict a, const struct leases_t *restrict b)
|
||||
static int ip_sort(const struct leases_t *restrict a,
|
||||
const struct leases_t *restrict b)
|
||||
{
|
||||
if (a->ip < b->ip)
|
||||
return -1;
|
||||
|
|
@ -56,7 +57,7 @@ int prepare_data(void)
|
|||
/* Sort leases */
|
||||
HASH_SORT(leases, ip_sort);
|
||||
/* Sort ranges */
|
||||
qsort(ranges, (size_t) num_ranges, sizeof(struct range_t), &rangecomp);
|
||||
qsort(ranges, (size_t)num_ranges, sizeof(struct range_t), &rangecomp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue