mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 00:37:01 +00:00
remove upper limit of sort order definitions
Unlikely to be needed by anyone, but because arbitrary limits are from code style point of view ugly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
327691f34a
commit
0369340710
5 changed files with 72 additions and 59 deletions
|
|
@ -402,6 +402,8 @@ void flip_ranges(struct range_t *restrict flip_me, struct range_t *restrict tmp_
|
|||
/*! \brief Free memory, flush buffers etc. */
|
||||
void clean_up(void)
|
||||
{
|
||||
struct output_sort *cur, *next;
|
||||
|
||||
/* Just in case there something in buffers */
|
||||
if (fflush(NULL))
|
||||
error(0, 0, "clean_up: fflush");
|
||||
|
|
@ -418,6 +420,10 @@ void clean_up(void)
|
|||
free((shared_networks + i)->name);
|
||||
free(shared_networks);
|
||||
}
|
||||
for (cur = config.sorts; cur; cur = next) {
|
||||
next = cur->next;
|
||||
free(cur);
|
||||
}
|
||||
}
|
||||
|
||||
/*! \brief A version printing. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue