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:
Sami Kerola 2012-11-28 19:50:42 +00:00
parent 761c9560d7
commit 6684772550
6 changed files with 48 additions and 38 deletions

View file

@ -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;
}