From 88d989bbe2bf846275201b87c412292c5bc1e0e8 Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Tue, 20 Nov 2012 22:28:01 +0800 Subject: [PATCH] Fix spelling mistakes. --- src/analyze.c | 4 ++-- src/dhcpd-pools.c | 2 +- src/getdata.c | 8 ++++---- src/other.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/analyze.c b/src/analyze.c index 71c6e93..b7f6baa 100644 --- a/src/analyze.c +++ b/src/analyze.c @@ -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; diff --git a/src/dhcpd-pools.c b/src/dhcpd-pools.c index 3d5597a..f50c48a 100644 --- a/src/dhcpd-pools.c +++ b/src/dhcpd-pools.c @@ -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. */ diff --git a/src/getdata.c b/src/getdata.c index c7c9ee0..e6c7746 100644 --- a/src/getdata.c +++ b/src/getdata.c @@ -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"); diff --git a/src/other.c b/src/other.c index 6b619fb..7c34578 100644 --- a/src/other.c +++ b/src/other.c @@ -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\