mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
cppcheck: fix variable scoping
[src/dhcpd-pools.c:68]: (style) The scope of the variable 'c' can be reduced. [src/getdata.c:210]: (style) The scope of the variable 'c' can be reduced. [src/hash.c:102]: (style) The scope of the variable 'l' can be reduced. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
23aae87356
commit
c3e492165c
3 changed files with 5 additions and 3 deletions
|
|
@ -99,8 +99,8 @@ void delete_all_leases(void)
|
|||
#else
|
||||
void delete_all_leases(void)
|
||||
{
|
||||
struct leases_t *l;
|
||||
while (leases) {
|
||||
struct leases_t *l;
|
||||
l = leases;
|
||||
free(l->ethernet);
|
||||
HASH_DEL(leases, l); /* leases advances to next on delete */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue