Fix spelling mistakes.

This commit is contained in:
Cheer Xiao 2012-11-20 22:28:01 +08:00 committed by Sami Kerola
parent 1b56bafaf5
commit 88d989bbe2
4 changed files with 9 additions and 9 deletions

View file

@ -60,7 +60,7 @@ int prepare_data(void)
return 0;
}
/* Join leases and ranges into couter structs */
/* Join leases and ranges into counter structs */
int do_counting(void)
{
struct range_t *restrict range_p;
@ -121,7 +121,7 @@ int do_counting(void)
}
/* 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. */
shared_networks->available = 0;
shared_networks->used = 0;

View file

@ -84,7 +84,7 @@ int main(int argc, char **argv)
config.dhcpdlease_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 */
config.output_file[0] = '\0';
/* Alarming defaults. */

View file

@ -54,7 +54,7 @@
#include "xalloc.h"
/* Parse dhcpd.leases file. All performance boosts for this function are
* wellcome */
* welcome */
int parse_leases(void)
{
FILE *dhcpd_leases;
@ -194,7 +194,7 @@ static int is_interesting_config_clause(char const *restrict s)
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,
struct shared_network_t *restrict shared_p)
{
@ -267,7 +267,7 @@ void parse_config(int is_include, const char *restrict config_file,
i = 0;
} else if (argument == 2) {
/* 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;
*
@ -398,7 +398,7 @@ void parse_config(int is_include, const char *restrict config_file,
shared_p->backups = 0;
if (SHARED_NETWORKS < num_shared_networks + 2) {
/* FIXME: make this
* away by reallocationg
* away by reallocating
* more space. */
errx(EXIT_FAILURE,
"parse_config: increase default.h SHARED_NETWORKS and recompile");

View file

@ -59,7 +59,7 @@ int
return false;
}
/* " binding state " == 16 chars, this will skip right
* to first difering line. */
* to first differing line. */
if (17 < len && a[17] != b[17]) {
return false;
}
@ -160,7 +160,7 @@ This is ISC dhcpd pools usage analyzer.\n\
-s, --sort=[nimcptTe] sort ranges by\n\
n name\n\
i IP\n\
m maxium\n\
m maximum\n\
c current\n\
p percent\n\
t touched\n\