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:
Sami Kerola 2015-11-30 00:49:42 +00:00
parent 327691f34a
commit 0369340710
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
5 changed files with 72 additions and 59 deletions

View file

@ -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. */