mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-16 07:47:00 +00:00
Fix spelling mistakes.
This commit is contained in:
parent
1b56bafaf5
commit
88d989bbe2
4 changed files with 9 additions and 9 deletions
|
|
@ -60,7 +60,7 @@ int prepare_data(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Join leases and ranges into couter structs */
|
/* Join leases and ranges into counter structs */
|
||||||
int do_counting(void)
|
int do_counting(void)
|
||||||
{
|
{
|
||||||
struct range_t *restrict range_p;
|
struct range_t *restrict range_p;
|
||||||
|
|
@ -121,7 +121,7 @@ int do_counting(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: During count of other shared networks default network and
|
/* FIXME: During count of other shared networks default network and
|
||||||
* all networks got mixed to gether semantically. This fixes the
|
* all networks got mixed together semantically. This fixes the
|
||||||
* problem, but is not elegant. */
|
* problem, but is not elegant. */
|
||||||
shared_networks->available = 0;
|
shared_networks->available = 0;
|
||||||
shared_networks->used = 0;
|
shared_networks->used = 0;
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ int main(int argc, char **argv)
|
||||||
config.dhcpdlease_file = xmalloc(sizeof(char) * MAXLEN);
|
config.dhcpdlease_file = xmalloc(sizeof(char) * MAXLEN);
|
||||||
config.output_file = xmalloc(sizeof(char) * MAXLEN);
|
config.output_file = xmalloc(sizeof(char) * MAXLEN);
|
||||||
|
|
||||||
/* Make sure string has zero lenght if there is no
|
/* Make sure string has zero length if there is no
|
||||||
* command line option */
|
* command line option */
|
||||||
config.output_file[0] = '\0';
|
config.output_file[0] = '\0';
|
||||||
/* Alarming defaults. */
|
/* Alarming defaults. */
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
|
|
||||||
/* Parse dhcpd.leases file. All performance boosts for this function are
|
/* Parse dhcpd.leases file. All performance boosts for this function are
|
||||||
* wellcome */
|
* welcome */
|
||||||
int parse_leases(void)
|
int parse_leases(void)
|
||||||
{
|
{
|
||||||
FILE *dhcpd_leases;
|
FILE *dhcpd_leases;
|
||||||
|
|
@ -194,7 +194,7 @@ static int is_interesting_config_clause(char const *restrict s)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: This spagetti monster function need to be rewrote at least ones. */
|
/* FIXME: This spaghetti monster function need to be rewrote at least ones. */
|
||||||
void parse_config(int is_include, const char *restrict config_file,
|
void parse_config(int is_include, const char *restrict config_file,
|
||||||
struct shared_network_t *restrict shared_p)
|
struct shared_network_t *restrict shared_p)
|
||||||
{
|
{
|
||||||
|
|
@ -267,7 +267,7 @@ void parse_config(int is_include, const char *restrict config_file,
|
||||||
i = 0;
|
i = 0;
|
||||||
} else if (argument == 2) {
|
} else if (argument == 2) {
|
||||||
/* Range ends to ; and this hair in code
|
/* Range ends to ; and this hair in code
|
||||||
* make two ranges wrote to gether like...
|
* make two ranges wrote together like...
|
||||||
*
|
*
|
||||||
* range 10.20.30.40 10.20.30.41;range 10.20.30.42 10.20.30.43;
|
* range 10.20.30.40 10.20.30.41;range 10.20.30.42 10.20.30.43;
|
||||||
*
|
*
|
||||||
|
|
@ -398,7 +398,7 @@ void parse_config(int is_include, const char *restrict config_file,
|
||||||
shared_p->backups = 0;
|
shared_p->backups = 0;
|
||||||
if (SHARED_NETWORKS < num_shared_networks + 2) {
|
if (SHARED_NETWORKS < num_shared_networks + 2) {
|
||||||
/* FIXME: make this
|
/* FIXME: make this
|
||||||
* away by reallocationg
|
* away by reallocating
|
||||||
* more space. */
|
* more space. */
|
||||||
errx(EXIT_FAILURE,
|
errx(EXIT_FAILURE,
|
||||||
"parse_config: increase default.h SHARED_NETWORKS and recompile");
|
"parse_config: increase default.h SHARED_NETWORKS and recompile");
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ int
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/* " binding state " == 16 chars, this will skip right
|
/* " binding state " == 16 chars, this will skip right
|
||||||
* to first difering line. */
|
* to first differing line. */
|
||||||
if (17 < len && a[17] != b[17]) {
|
if (17 < len && a[17] != b[17]) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -160,7 +160,7 @@ This is ISC dhcpd pools usage analyzer.\n\
|
||||||
-s, --sort=[nimcptTe] sort ranges by\n\
|
-s, --sort=[nimcptTe] sort ranges by\n\
|
||||||
n name\n\
|
n name\n\
|
||||||
i IP\n\
|
i IP\n\
|
||||||
m maxium\n\
|
m maximum\n\
|
||||||
c current\n\
|
c current\n\
|
||||||
p percent\n\
|
p percent\n\
|
||||||
t touched\n\
|
t touched\n\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue