Use what libc will provide

The eprintf removed and replaced with err & warn. Option parsing
no longer tries to find missing optargs, which are getopts should
notice. Few complier warnings got to be removed as well. Finally
the commments will no longer exceed standard terminal width.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-01-22 20:53:15 +01:00
parent 775157b1a5
commit 849c8f5e73
8 changed files with 136 additions and 214 deletions

View file

@ -129,7 +129,8 @@ int do_counting(void)
range_p->shared_net->available += block_size;
}
/* Reverse so that not even a one IP will be missed. */
/* Go backwards one step so that not even a one IP will be
* missed. This is possibly always unnecessary. */
if (i) {
i--;
}
@ -140,10 +141,9 @@ int do_counting(void)
range_p++;
}
/* During count of other shared networks default network and
* all networks got mixed to gether semantically. This fixes
* the problem, but is not elegant. TODO: fix semantics of all
* and default share_network. */
/* FIXME: During count of other shared networks default network and
* all networks got mixed to gether semantically. This fixes the
* problem, but is not elegant. */
shared_networks->available = 0;
shared_networks->used = 0;
shared_networks->touched = 0;