mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 15:57:00 +00:00
analyze: debugging leftover removed
My stupid mistake to leave statement hanging around while I where wondering where the uninitialized memory came from. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
26db4eafdc
commit
d29fd809c9
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ int do_counting(void)
|
|||
/* Walk through ranges */
|
||||
for (i = j = k = l = 0; i < num_ranges; i++) {
|
||||
/* Count IPs in use */
|
||||
for (j = j; leases[j] < range_p->last_ip
|
||||
for (; leases[j] < range_p->last_ip
|
||||
&& (unsigned long) j < num_leases; j++) {
|
||||
if (leases[j] < range_p->first_ip) {
|
||||
continue;
|
||||
|
|
@ -109,7 +109,7 @@ int do_counting(void)
|
|||
}
|
||||
|
||||
/* Count touched IPs */
|
||||
for (k = k; touches[k] < range_p->last_ip
|
||||
for (; touches[k] < range_p->last_ip
|
||||
&& (unsigned long) k < num_touches; k++) {
|
||||
if (touches[k] < range_p->first_ip) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue