]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
fix spelling
authora1346054 <36859588+a1346054@users.noreply.github.com>
Sun, 5 Sep 2021 13:18:53 +0000 (13:18 +0000)
committera1346054 <36859588+a1346054@users.noreply.github.com>
Sun, 5 Sep 2021 13:56:32 +0000 (13:56 +0000)
packet/cmdparse.h
packet/packet.c
test/probe.py
ui/cmdpipe.c
ui/curses.c
ui/report.c
ui/utils.c

index 77c828171e0a3fa7941674c66c9d155962fb5584..e5cfeabb7faadf403c39ecc347a37672d1893796 100644 (file)
@@ -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  */
index a8c2b6e3c7598dcc2f565a28d3a80a3ca379a28e..2c16197500b068160ee731ed12db37fb77becf2a 100644 (file)
@@ -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)
index 88739cb58cf94042a3161d0a253554977676541c..df5f49678e59308e097be49ec0942daccebfceed 100755 (executable)
@@ -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
index a9197544503d1c4f06a401091a0df05ccece4b9b..f6e87e1a75a695bd55adb2024454d0d870966245 100644 (file)
@@ -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];
index 207b272bfe3c2e9d71da6d2697a7a0666e99bd25..b6b913c10c07fd1291f215b655d02411a2912748 100644 (file)
@@ -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 {
index 6f381f5a4d5823b6aa8a163fbb833b934dc767f3..ee7d6d419886967e496175cbd371d01033e85621 100644 (file)
@@ -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));
index bbdf69d7719491adb1552171e8eb8fb46cb7148d..edd59055d3a98df5c9b28264338f42464bd5aa2d 100644 (file)
@@ -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)