From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Sun, 5 Sep 2021 13:18:53 +0000 (+0000) Subject: fix spelling X-Git-Tag: v0.95~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=001ea8a19078b91b5cc56c7336352d2c616808e8;p=thirdparty%2Fmtr.git fix spelling --- diff --git a/packet/cmdparse.h b/packet/cmdparse.h index 77c8281..e5cfeab 100644 --- a/packet/cmdparse.h +++ b/packet/cmdparse.h @@ -29,7 +29,7 @@ struct command_t { /* A unique value for matching command requests with replies */ int token; - /* Text indiciating the command type, or reply type */ + /* Text indicating the command type, or reply type */ char *command_name; /* The number of key, value argument pairs used */ diff --git a/packet/packet.c b/packet/packet.c index a8c2b6e..2c16197 100644 --- a/packet/packet.c +++ b/packet/packet.c @@ -35,7 +35,7 @@ #include "wait.h" -/* Drop SUID privileges. To be used after accquiring raw sockets. */ +/* Drop SUID privileges. To be used after acquiring raw sockets. */ static int drop_elevated_permissions( void) diff --git a/test/probe.py b/test/probe.py index 88739cb..df5f496 100755 --- a/test/probe.py +++ b/test/probe.py @@ -17,7 +17,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -'''Test sending probes and receiving respones.''' +'''Test sending probes and receiving responses.''' import socket import sys @@ -136,7 +136,7 @@ class TestProbeICMPv4(mtrpacket.MtrPacketTest): 'Test timeouts when sending to a non-existant address' # - # Probe a non-existant address, and expect no reply + # Probe a non-existent address, and expect no reply # # I'm not sure what the best way to find an address that doesn't # exist, but is still route-able. If we use a reserved IP diff --git a/ui/cmdpipe.c b/ui/cmdpipe.c index a919754..f6e87e1 100644 --- a/ui/cmdpipe.c +++ b/ui/cmdpipe.c @@ -355,7 +355,7 @@ void construct_base_command( const char *local_ip_type; const char *protocol = NULL; - /* Conver the remote IP address to a string */ + /* Convert the remote IP address to a string */ if (inet_ntop(ctl->af, address, ip_string, INET6_ADDRSTRLEN) == NULL) { display_close(ctl); @@ -742,7 +742,7 @@ void consume_reply_buffer( /* We may have multiple completed replies. Loop until we don't - have any more newlines termininating replies. + have any more newlines terminating replies. */ while (true) { /* If no newline is found, our reply isn't yet complete */ @@ -803,7 +803,7 @@ void handle_command_replies( reply_buffer = cmdpipe->reply_buffer; /* - Read the available reply text, up to the the remaining + Read the available reply text, up to the remaining buffer space. (Minus one for the terminating NUL.) */ read_buffer = &reply_buffer[cmdpipe->reply_buffer_used]; diff --git a/ui/curses.c b/ui/curses.c index 207b272..b6b913c 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -390,7 +390,7 @@ static void format_field( format_number(n, 5, dst); } else if (strchr(format, 'f')) { /* this is for fields where we measure integer microseconds but - display floating point miliseconds. Convert to float here. */ + display floating point milliseconds. Convert to float here. */ snprintf(dst, dst_length, format, n / 1000.0); /* this was marked as a temporary hack over 10 years ago. -- REW */ } else { diff --git a/ui/report.c b/ui/report.c index 6f381f5..ee7d6d4 100644 --- a/ui/report.c +++ b/ui/report.c @@ -170,7 +170,7 @@ void report_close( if (j < 0) continue; - /* 1000.0 is a temporay hack for stats usec to ms, impacted net_loss. */ + /* 1000.0 is a temporary hack for stats usec to ms, impacted net_loss. */ if (strchr(data_fields[j].format, 'f')) { snprintf(buf + len, sizeof(buf), data_fields[j].format, data_fields[j].net_xxx(at) / 1000.0); @@ -385,7 +385,7 @@ void json_close(struct mtr_ctl *ctl) if (ret == -1) goto on_error; - printf("\n"); // bash promt should be on new line + printf("\n"); // bash prompt should be on new line json_decref(jreport); return; on_error: @@ -447,7 +447,7 @@ void xml_close( title = "Loss"; } - /* 1000.0 is a temporay hack for stats usec to ms, impacted net_loss. */ + /* 1000.0 is a temporary hack for stats usec to ms, impacted net_loss. */ if (strchr(data_fields[j].format, 'f')) { printf(name, title, data_fields[j].net_xxx(at) / 1000.0, title); @@ -518,7 +518,7 @@ void csv_close( if (j < 0) continue; - /* 1000.0 is a temporay hack for stats usec to ms, impacted net_loss. */ + /* 1000.0 is a temporary hack for stats usec to ms, impacted net_loss. */ if (strchr(data_fields[j].format, 'f')) { printf(",%.2f", (double) (data_fields[j].net_xxx(at) / 1000.0)); diff --git a/ui/utils.c b/ui/utils.c index bbdf69d..edd5905 100644 --- a/ui/utils.c +++ b/ui/utils.c @@ -176,7 +176,7 @@ void close_stdout( _exit(EXIT_FAILURE); } -/* ctime() replacement that will reteturn ISO-8601 timestamp string such as: +/* ctime() replacement that will return ISO-8601 timestamp string such as: * 2016-08-29T19:25:02+01:00 */ const char *iso_time( const time_t * t)