mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
other: reduce variable scope
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
0d2b30b62d
commit
e401c2c7e6
1 changed files with 1 additions and 2 deletions
|
|
@ -404,8 +404,6 @@ void flip_ranges(struct range_t *restrict flip_me, struct range_t *restrict tmp_
|
|||
/*! \brief Free memory, flush buffers etc. */
|
||||
void clean_up(void)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
/* Just in case there something in buffers */
|
||||
if (fflush(NULL)) {
|
||||
warn("clean_up: fflush");
|
||||
|
|
@ -416,6 +414,7 @@ void clean_up(void)
|
|||
free(ranges);
|
||||
delete_all_leases();
|
||||
if (shared_networks) {
|
||||
unsigned int i;
|
||||
num_shared_networks++;
|
||||
for (i = 0; i < num_shared_networks; i++) {
|
||||
free((shared_networks + i)->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue