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:
Sami Kerola 2013-04-05 23:13:10 +01:00
parent 23aae87356
commit c3e492165c
3 changed files with 5 additions and 3 deletions

View file

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