]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
trim trailing whitespace 407/head
authora1346054 <36859588+a1346054@users.noreply.github.com>
Sun, 5 Sep 2021 13:17:33 +0000 (13:17 +0000)
committera1346054 <36859588+a1346054@users.noreply.github.com>
Sun, 5 Sep 2021 13:56:32 +0000 (13:56 +0000)
35 files changed:
AUTHORS
FORMATS
Makefile.am
README.md
TODO
man/mtr.8.in
packet/command.c
packet/construct_unix.c
packet/packet.c
packet/probe.c
packet/probe_cygwin.c
packet/probe_unix.c
packet/probe_unix.h
packet/protocols.h
portability/getopt.c
ui/asn.c
ui/cmdpipe.c
ui/curses.c
ui/display.c
ui/display.h
ui/dns.c
ui/dns.h
ui/gtk.c
ui/mtr-curses.h
ui/mtr-gtk.h
ui/mtr.h
ui/net.c
ui/net.h
ui/raw.c
ui/raw.h
ui/report.h
ui/select.c
ui/select.h
ui/split.c
ui/split.h

diff --git a/AUTHORS b/AUTHORS
index d4c2a1f77a49f4fd1ed17537e6c8146fbbaa6de1..a2025ce700b5742276e3645518cbab11e5f1567f 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -7,7 +7,7 @@
   Bug reports and feature requests should be sent as described in
   the README file.
 
-  Thanks to everyone who has provided feedback on mtr.  
+  Thanks to everyone who has provided feedback on mtr.
 
   Thanks especially to those of you who have sent code:
   (Reverse alphabetical order, and sometimes I just add people at
         Davin Milun
         Josh Martin <jmartin@columbiaservices.net>
         Alexander V. Lukyanov <lav@yars.free.net>
-        Charles Levert <charles@comm.polymtl.ca> 
+        Charles Levert <charles@comm.polymtl.ca>
         Bertrand Leconte <B.Leconte@mail.dotcom.fr>
         Anand Kumria
         Olav Kvittem <Olav.Kvittem@uninett.no>
-        Adam Kramer <l3zqc@qcunix1.acc.qc.edu> 
+        Adam Kramer <l3zqc@qcunix1.acc.qc.edu>
         Philip Kizer <pckizer@nostrum.com>
         Simon Kirby
         Sami Kerola <kerolasa@iki.fi>
@@ -49,7 +49,7 @@
         Travis Cross <tc@traviscross.com>
         Brian Casey <bcasey@imagiware.com>
         Andrew Brown <atatat@atatdot.net>
-        Bill Bogstad <bogstad@pobox.com> 
+        Bill Bogstad <bogstad@pobox.com>
         Marc Bejarano <marc.bejarano@openwave.com>
         Moritz Barsnick <barsnick@gmx.net>
         Thomas Klausner <wiz@NetBSD.org>
@@ -63,7 +63,7 @@
 
         and anyone who has slipped through the cracks of my mail file.
 
-Authors: If you want your Email mentioned here, send it to me. 
-         If you don't want your Email mentioned here, tell me.  
+Authors: If you want your Email mentioned here, send it to me.
+         If you don't want your Email mentioned here, tell me.
 
         -- REW
diff --git a/FORMATS b/FORMATS
index d0e05ff6c5e5e8e43284e044ea01c27145c67547..cae643df413a6906d6493167146f798df17bf3d1 100644 (file)
--- a/FORMATS
+++ b/FORMATS
@@ -6,7 +6,7 @@ gui-library with a setuid program.
 
 The split format is:
 
-<pos> <host> <loss%> <rcvd pckts> <sent pckts> <best> <avg> <worst> 
+<pos> <host> <loss%> <rcvd pckts> <sent pckts> <best> <avg> <worst>
 
 
 The "raw" format is:
@@ -22,7 +22,7 @@ x <pos> <seqnum>
 pingline:
 p <pos> <pingtime (ms)> <seqnum>
 
-dnsline: 
+dnsline:
 d <pos> <hostname>
 
 timestampline:
@@ -37,7 +37,7 @@ ICMP timestamping first. :-)
 
 Someone suggested to put the following text here. As to context: Some
 people are wondering why mtr sometimes reports hosts beyond the
-destination host. 
+destination host.
 
 
 The FINAL host will occasionally be mentioned at position n, n+1, n+2
@@ -102,4 +102,3 @@ h 15 152.63.50.89
 h 16 152.179.99.218
 h 17 152.179.99.218
 h 18 152.179.99.218
-
index 7719be140cc2c6e64532e9e3f8d535dd27974fdd..3737a93cd32b2cb6708044fbd8c6941093c24fe0 100644 (file)
@@ -40,7 +40,7 @@ $(PATHFILES): Makefile
 dist_man_MANS = mtr.8 mtr-packet.8
 PATHFILES += man/mtr.8 man/mtr-packet.8
 
-install-exec-hook: 
+install-exec-hook:
        `setcap cap_net_raw+ep $(DESTDIR)$(sbindir)/mtr-packet` \
        || chmod u+s $(DESTDIR)$(sbindir)/mtr-packet
 
@@ -172,4 +172,3 @@ endif
 
 dist-hook:
        $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
-
index 695031ff565049676c5b2b879efbf77539ddba77..9e4ebbb5e7a5aab845420bcd4a1fc2dfa2b6177b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -24,12 +24,12 @@ simple as:
 
 Please note that this refers to the tarballs from
  https://www.bitwizard.nl/mtr/files/
-and not the tarballs that github can produce. 
+and not the tarballs that github can produce.
 
 (in the past, there was a Makefile in the distribution that did
 the `./configure` for you and then ran make again with the generated
 Makefile, but this has suffered some bitrot. It didn't work well
-with git.) 
+with git.)
 
 If you're building from the git repository, you'll need to run:
 
@@ -75,7 +75,7 @@ BUILDING FOR WINDOWS
 
 Building for Windows requires Cygwin.  To obtain Cygwin, see
 https://cygwin.com/install.html.
-Next, re-run cygwin's `setup-x86.exe` (or `setup-x86_64.exe` if you're using 64bit cygwin) with the following arguments,  
+Next, re-run cygwin's `setup-x86.exe` (or `setup-x86_64.exe` if you're using 64bit cygwin) with the following arguments,
 which will install the packages required for building:
 
         setup-x86.exe --package-manager --wait --packages automake,pkg-config,make,gcc-core,libncurses-devel,libjansson-devel
@@ -110,4 +110,3 @@ when the server was upgraded, the mailing list died.)
 
 
 REW
-
diff --git a/TODO b/TODO
index 99720c87b541192eab7b49ef420e2e60b2401792..95481c541209bd4e68357d915064db90f84cb3d2 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,5 +1,4 @@
-
-Hi everyone, 
+Hi everyone,
 
 This is the "todo" file for mtr. I just realized that some people
 might think that this is all in MY queue to implement. That is not
@@ -16,7 +15,7 @@ implement something on this list. That way we get the design of
 these things the way I like them. This should result in a better
 maintainable mtr.
 
-Oh, Feel free to provide suggestions for this list. 
+Oh, Feel free to provide suggestions for this list.
 
 
 -- REW
@@ -24,7 +23,7 @@ Oh, Feel free to provide suggestions for this list.
 ----------------------------------------------------------------------
 
 - cleanup
-  - cleanup warnings that the newer GCC produces. 
+  - cleanup warnings that the newer GCC produces.
 
 - Stuff to implement:
 
@@ -34,16 +33,16 @@ Oh, Feel free to provide suggestions for this list.
     mtr.
 
   - Request timestamping at the remote site.
-       Andreas Fasbender has an algorithm that will allow us to 
+       Andreas Fasbender has an algorithm that will allow us to
        convert these measurements into one-way measurements, not just
        round-trip.
 
-  - allow "keyboard navigation" in the GTK version. 
+  - allow "keyboard navigation" in the GTK version.
 
   - Keep all packets and make the "best" and "worst" columns show the
     xx-th percentile....
 
-  - Being able to expand the "column width" of the hosts listed would 
+  - Being able to expand the "column width" of the hosts listed would
     be nice, too.
 
   - Display per host stats when multiple servers respond at a particular
@@ -52,32 +51,32 @@ Oh, Feel free to provide suggestions for this list.
 
 - Bugs to fix?
 
-  - Do something useful if host couldn't be resolved. 
-       -- Done. 
+  - Do something useful if host couldn't be resolved.
+       -- Done.
 
   - Revert to curses mode even if DISPLAY is set, but a problem
     prevents us from running in X11 mode.
        -->  The problem is that gtk_init simply calls exit for us if
-            it finds a problem. Tricky! Suggestions welcome. 
+            it finds a problem. Tricky! Suggestions welcome.
        --> Call "gtk_check_init" when available. (i.e. new enough
            (1.2?) GTK version).
 
 - Nice to have:
 
-  - stop sending packets when a new host is getting entered. 
+  - stop sending packets when a new host is getting entered.
 
   - Show state ("looking up host") while doing the DNS lookup for a new
     host.
 
   - to have a choice of icmp, tcp, and udp pings. -- Matt Martini
 
-  - Autoconf 2.13 has a neat function that can be used to find the 
-    res_init function: 
+  - Autoconf 2.13 has a neat function that can be used to find the
+    res_init function:
 
           AC_SEARCH_LIBS(res_init, bind resolv, ,
              AC_MSG_ERROR(No resolver library found))
 
-    At the moment (march 1999) autoconf 2.13 is still too new to require 
+    At the moment (march 1999) autoconf 2.13 is still too new to require
     everyone to upgrade. About a year from now we can put this in....
 
   - Implement rfc2317 mechanism to do reverse lookups for networks that
@@ -104,11 +103,11 @@ Oh, Feel free to provide suggestions for this list.
 
 Things that shouldn't be on the TODO list because they're done. ;-)
 
-  - Allow a toggle between hostname/IP number display. (for example a 
+  - Allow a toggle between hostname/IP number display. (for example a
     click on the hostname could revert to ip number display in gtk version.
     curses: "n" key toggles hostnames/ipnumbers?)
 
-  - Allow mtr to also send larger packets. 
+  - Allow mtr to also send larger packets.
        This will enable us to get a feel for the speed of the links
        we're traversing. (Van Jacobson was working on this His tool
        was slow, mtr will rock with this feature.... :-)
@@ -120,9 +119,8 @@ Things that shouldn't be on the TODO list because they're done. ;-)
     It should not probe more than 10 unknown hosts, but the counter need
     not be reset at the start of the "round". This way if you probe
     slowly (relative to the RTT time to the end host), it can probe
-    all hosts in the first "round". 
+    all hosts in the first "round".
        -- DONE.
 
   - Read environment variable "MTR_DEFAULTS" as a commandline before
     parsing the commandline.  -- DONE. (ok it's MTR_OPTIONS.)
-
index 9d13535043e205ad6d087fb491a936c36c9d392c..80c479020f9340b87280f57f8ef98a5e1ab92027 100644 (file)
@@ -114,38 +114,38 @@ mtr \- a network diagnostic tool
 ]
 .I HOSTNAME
 .SH DESCRIPTION
-.B mtr 
-combines the functionality of the 
+.B mtr
+combines the functionality of the
 .B traceroute
-and 
+and
 .B ping
 programs in a single network diagnostic tool.
 .PP
-As 
-.B mtr 
-starts, it investigates the network connection between the host 
+As
 .B mtr
-runs on and 
+starts, it investigates the network connection between the host
+.B mtr
+runs on and
 .BR HOSTNAME
 by sending packets with purposely low TTLs.  It continues to send
 packets with low TTL, noting the response time of the intervening
-routers.  This allows 
-.B mtr 
+routers.  This allows
+.B mtr
 to print the response percentage and response times of the internet
-route to 
-.BR HOSTNAME . 
+route to
+.BR HOSTNAME .
 A sudden increase in packet loss or response time is often an indication
-of a bad (or simply overloaded) link. 
+of a bad (or simply overloaded) link.
 .PP
 The results are usually reported as round-trip-response times in milliseconds
-and the percentage of packet loss. 
+and the percentage of packet loss.
 .SH OPTIONS
 .TP
 .B \-h\fR, \fB\-\-help
 Print the summary of command line argument options.
 .TP
 .B \-v\fR, \fB\-\-version
-Print the installed version of mtr.  
+Print the installed version of mtr.
 .TP
 .B \-4
 Use IPv4 only.
@@ -157,33 +157,33 @@ Use IPv6 only.  (IPV4 may be used for DNS lookups.)
 Reads the list of hostnames from the specified file.
 .TP
 .B \-r\fR, \fB\-\-report
-This option puts 
+This option puts
 .B mtr
-into 
+into
 .B report
 mode.  When in this mode,
 .B mtr
-will run for the number of cycles specified by the 
+will run for the number of cycles specified by the
 .B \-c
-option, and then print statistics and exit.  
+option, and then print statistics and exit.
 .TP
 \c
-This mode is useful for generating statistics about network quality.  
-Note that each running instance of 
+This mode is useful for generating statistics about network quality.
+Note that each running instance of
 .B mtr
-generates a significant amount of network traffic.  Using 
+generates a significant amount of network traffic.  Using
 .B mtr
 to measure the quality of your network may result in decreased
-network performance.  
+network performance.
 .TP
 .B \-w\fR, \fB\-\-report\-wide
-This option puts 
+This option puts
 .B mtr
-into 
+into
 .B wide report
 mode.  When in this mode,
 .B mtr
-will not cut hostnames in the report. 
+will not cut hostnames in the report.
 .TP
 .B \-x\fR, \fB\-\-xml
 Use this option to tell
@@ -192,12 +192,12 @@ to use the xml output format.  This format is better suited for
 automated processing of the measurement results.
 .TP
 .B \-t\fR, \fB\-\-curses
-Use this option to force 
-.B mtr 
+Use this option to force
+.B mtr
 to use the curses based terminal
 interface (if available).
-In case the list of hops exceeds the 
-height of your terminal, you can use the 
+In case the list of hops exceeds the
+height of your terminal, you can use the
 .B +
 and
 .B -
@@ -215,19 +215,19 @@ information.
 .TP
 .B \-g\fR, \fB\-\-gtk
 Use this option to force
-.B mtr 
-to use the GTK+ based X11 window interface (if available).  
-GTK+ must have been available on the system when 
-.B mtr 
-was built for this to work.  See the GTK+ web page at 
+.B mtr
+to use the GTK+ based X11 window interface (if available).
+GTK+ must have been available on the system when
+.B mtr
+was built for this to work.  See the GTK+ web page at
 .UR http://\:www.\:gtk.\:org/
 .UE
 for more information about GTK+.
 .TP
 .B \-l\fR, \fB\-\-raw
 Use the raw output format.  This format is better suited for
-archival of the measurement results.  It could be parsed to 
-be presented into any of the other display methods. 
+archival of the measurement results.  It could be parsed to
+be presented into any of the other display methods.
 .IP
 Example of the raw output format:
 .nf
@@ -273,14 +273,14 @@ was built for this to work.
 .TP
 .B \-p\fR, \fB\-\-split
 Use this option to set
-.B mtr 
+.B mtr
 to spit out a format that is suitable for a split-user interface.
 .TP
 .B \-n\fR, \fB\-\-no\-dns
-Use this option to force 
-.B mtr 
+Use this option to force
+.B mtr
 to display numeric IP numbers and not try to resolve the
-host names. 
+host names.
 .TP
 .B \-b\fR, \fB\-\-show\-ips
 Use this option to tell
@@ -288,7 +288,7 @@ Use this option to tell
 to display both the host names and numeric IP numbers.  In split mode
 this adds an extra field to the output.  In report mode, there is usually
 too little space to add the IPs, and they will be truncated.  Use the
-wide report (-w) mode to see the IPs in report mode. 
+wide report (-w) mode to see the IPs in report mode.
 .TP
 .B \-o \fIFIELDS\fR, \fB\-\-order \fIFIELDS
 Use this option to specify which fields to display and in which order.
@@ -354,7 +354,7 @@ root user may choose values between zero and one.
 .TP
 .B \-c \fICOUNT\fR, \fB\-\-report\-cycles \fICOUNT
 Use this option to set the number of pings sent to determine
-both the machines on the network and the reliability of 
+both the machines on the network and the reliability of
 those machines.  Each cycle lasts one second.
 .TP
 .B \-s \fIPACKETSIZE\fR, \fB\-\-psize \fIPACKETSIZE
@@ -378,8 +378,8 @@ Specifies value for type of service field in IP header.  Should be within range
 - 255.
 .TP
 .B \-e\fR, \fB\-\-mpls
-Use this option to tell 
-.B mtr 
+Use this option to tell
+.B mtr
 to display information from ICMP extensions for MPLS (RFC 4950)
 that are encoded in the response packets.
 .TP
@@ -501,15 +501,15 @@ can be controlled while it is running with the following keys:
   z       toggle ASN info on/off
   q       exit
 .SH BUGS
-Some modern routers give a lower priority to ICMP ECHO packets than 
+Some modern routers give a lower priority to ICMP ECHO packets than
 to other network traffic.  Consequently, the reliability of these
-routers reported by 
+routers reported by
 .B mtr
-will be significantly lower than the actual reliability of 
-these routers.  
+will be significantly lower than the actual reliability of
+these routers.
 .SH CONTACT INFORMATION
 .PP
-For the latest version, see the mtr web page at 
+For the latest version, see the mtr web page at
 .UR http://\:www.\:bitwizard.\:nl/\:mtr/
 .UE
 .PP
index 2026352fa1108b7e256c4cb4525066ca394248f1..b624ea6c833db767cef0768b7ca9e940f9c95278 100644 (file)
@@ -424,7 +424,7 @@ void dispatch_buffer_commands(
     if (buffer->incoming_read_position >= COMMAND_BUFFER_SIZE - 1) {
         /*
            If we've filled the buffer without a complete command, the
-           only thing we can do is discard what we've read and hope that 
+           only thing we can do is discard what we've read and hope that
            new data is better formatted.
          */
         printf("0 command-buffer-overflow\n");
index dff17d82b3ec77db8e8bceb2b7ce09666559046c..644536d8e743ea1e7ddb4e34a6cce97bfe159f8c 100644 (file)
@@ -591,7 +591,7 @@ int construct_ip4_packet(
     /*
        The routing mark requires CAP_NET_ADMIN, as opposed to the
        CAP_NET_RAW which we are sometimes explicitly given.
-       If we don't have CAP_NET_ADMIN, this will fail, so we'll 
+       If we don't have CAP_NET_ADMIN, this will fail, so we'll
        only set the mark if the user has explicitly requested it.
 
        Unfortunately, this means that once the mark is set, it won't
index 2c16197500b068160ee731ed12db37fb77becf2a..3821d91bda8e3ea190f5c37e9c76d1691cf8a9dd 100644 (file)
@@ -82,7 +82,7 @@ int main(
     struct net_state_t net_state;
 
     /*
-       To minimize security risk, the only thing done prior to 
+       To minimize security risk, the only thing done prior to
        dropping SUID should be opening the network state for
        raw sockets.
      */
index 48f11b6ed11357dcc0a2ac40b887bd3aab83afcc..6581015df398054ab2d2c715821eeac075c74713 100644 (file)
@@ -319,7 +319,7 @@ int find_source_addr(
     int len;
     struct sockaddr_storage dest_with_port;
 #ifdef __linux__
-    // The Linux code needs these. 
+    // The Linux code needs these.
     struct sockaddr_in *srcaddr4;
     struct sockaddr_in6 *srcaddr6;
 #endif
index ab477be6c3c21b69d101fec664945a6e3d7a4abb..f41e5144b461e3b902b4bf7bb32ed62769deca59 100644 (file)
@@ -352,7 +352,7 @@ void icmp_send_probe(
         timeout = 1000 * request->timeout;
     } else {
         /*
-           IcmpSendEcho2 will return invalid argument on a timeout of 
+           IcmpSendEcho2 will return invalid argument on a timeout of
            zero.  Our Unix implementation allows it.  Bump up the timeout
            to 1 millisecond.
          */
index e77e46f992e89d93d850af7e7f24a7a9893cfa08..f7f393fca4833bd389ef36bf46cd5158fe9b84ff 100644 (file)
@@ -153,7 +153,7 @@ void check_length_order(
 
     if (resolve_probe_addresses(net_state, &param, &p0.remote_addr,
                 &p0.local_addr)) {
-        fprintf(stderr, "Error decoding localhost address (%s/%s)\n", 
+        fprintf(stderr, "Error decoding localhost address (%s/%s)\n",
                 probe_err, strerror (errno));
         exit(EXIT_FAILURE);
     }
@@ -575,18 +575,18 @@ void send_probe(
         error(EXIT_FAILURE, errno, "gettimeofday failure");
     }
 
-    // there might be an off-by-one in the number of tries here. 
+    // there might be an off-by-one in the number of tries here.
     // this is intentional.  It is no use exhausting the very last
-    // open port. Max 10 retries would've been acceptable too I think. 
+    // open port. Max 10 retries would've been acceptable too I think.
     for (trytimes=MIN_PORT; trytimes < MAX_PORT; trytimes++) {
-                       
+
         packet_size = construct_packet(net_state, &probe->platform.socket,
                          probe, packet, PACKET_BUFFER_SIZE,
                          param);
 
         if (packet_size > 0) break; // no retry if we succeed.
 
-        if ((param->protocol != IPPROTO_TCP) && 
+        if ((param->protocol != IPPROTO_TCP) &&
             (param->protocol != IPPROTO_SCTP)) break; // no retry if not TCP/SCTP
 
         if ((errno != EADDRINUSE) && (errno != EADDRNOTAVAIL)) {
@@ -594,7 +594,7 @@ void send_probe(
         }
 
        probe->sequence = net_state->platform.next_sequence++;
-               
+
                if (net_state->platform.next_sequence > MAX_PORT) {
             net_state->platform.next_sequence = MIN_PORT;
         }
index 0ce7657b4e4038ce953c1e683c89218146184853..f217a66e0e52d476e230c017514513625fc536bd 100644 (file)
@@ -20,7 +20,7 @@
 #define PROBE_UNIX_H
 
 #ifndef IPPROTO_SCTP
-// Needed for Netbsd. 
+// Needed for Netbsd.
 #define IPPROTO_SCTP           132             /* SCTP */
 #endif
 
index 89d0a96479cc36e564b62ef3f951be5572c06f2b..51fce9aeba1ee416edd1bb726878ebc5f12ecdc9 100644 (file)
@@ -50,7 +50,7 @@
 #define HTTP_PORT 80
 
 /*  We can't rely on header files to provide this information, because
-    the fields have different names between, for instance, Linux and 
+    the fields have different names between, for instance, Linux and
     Solaris  */
 struct ICMPHeader {
     uint8_t type;
index fcd0b7df4835f53c9a8dc591b03cfbbfc73e812b..0c6a1b962c47494857cd2fa3dde71088575b390e 100644 (file)
@@ -550,7 +550,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
                    fprintf (stderr,
                     _("%s: option `%c%s' doesn't allow an argument\n"),
                     argv[0], argv[optind - 1][0], pfound->name);
-                 } 
+                 }
                  nextchar += strlen (nextchar);
                  return '?';
                }
index 4790d6a4c0fdccdeda9bffc65818c6f82b42913b..3f424e08c385f3a7bdf8dd59ed3f96f4aed5c164 100644 (file)
--- a/ui/asn.c
+++ b/ui/asn.c
@@ -207,7 +207,7 @@ static void reverse_host6(
 {
     int i;
     char *b = buff;
-    // We need to process the top 64 bits, or 8 bytes. 
+    // We need to process the top 64 bits, or 8 bytes.
     for (i = 8-1; i >= 0; i--, b += 4, buff_length -= 4)
         snprintf(b, buff_length,
                  "%x.%x.", addr->s6_addr[i] & 0xf, addr->s6_addr[i] >> 4);
index f6e87e1a75a695bd55adb2024454d0d870966245..d22b236f99ba731d4e511f46388379d2e97abff8 100644 (file)
@@ -231,8 +231,8 @@ void execute_packet_child(
      */
     execlp(mtr_packet_path, "mtr-packet", (char *) NULL);
 
-    /* 
-       Then try to find it where WE were executed from.  
+    /*
+       Then try to find it where WE were executed from.
      */
     strncpy (buf, myname, 240);
     strcat (buf, "-packet");
index b6b913c10c07fd1291f215b655d02411a2912748..de6cea9e8bc72079e2f85a1acec6d18c2a12151c 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
@@ -451,7 +451,7 @@ static void mtr_curses_hosts(
             hd_len = 0;
             for (i = 0; i < MAXFLD; i++) {
                 /* Ignore options that don't exist */
-                /* On the other hand, we now check the input side. Shouldn't happen, 
+                /* On the other hand, we now check the input side. Shouldn't happen,
                    can't be careful enough. */
                 j = ctl->fld_index[ctl->fld_active[i]];
                 if (j == -1)
@@ -698,8 +698,8 @@ void mtr_curses_redraw(
     pwcenter(buf);
     attroff(A_BOLD);
 
-    mvprintw(1, 0, "%s (%s) -> %s (%s)", 
-       ctl->LocalHostname, net_localaddr(), 
+    mvprintw(1, 0, "%s (%s) -> %s (%s)",
+       ctl->LocalHostname, net_localaddr(),
        ctl->Hostname, net_remoteaddr());
     t = time(NULL);
     mvprintw(1, maxx - 25, iso_time(&t));
index 7127be520b63ef7842a8468730c3f4add18c3652..e457b59cf01136e4ac02eb876c7122cf36c8fdfc 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 3eaa291b4c3e912a4cc8d1ad98f58febcd113009..0c16e90cc01d9df92660afbf56aecc1a8d62f2a6 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
@@ -18,7 +18,7 @@
 
 #include <netinet/in.h>
 
-/* Don't put a trailing comma in enumeration lists. Some compilers 
+/* Don't put a trailing comma in enumeration lists. Some compilers
    (notably the one on Irix 5.2) do not like that. */
 enum { ActionNone, ActionQuit, ActionReset, ActionDisplay,
     ActionClear, ActionPause, ActionResume, ActionMPLS, ActionDNS,
index 8f47316c4d7ab14eed2571d7370c3d3344f7d531..824b401136b77a1ae3211fdcf4941e06c7a3bee4 100644 (file)
--- a/ui/dns.c
+++ b/ui/dns.c
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 918bc51ca9262508c1015d63070ba795edb67ab3..52ce1b7bcedc1a23d45e7aba22c70a78d950bd85 100644 (file)
--- a/ui/dns.h
+++ b/ui/dns.h
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 7c4a9fd4513a4e26c06a1dc9798b3e4038f80737..742c5c954d53bdd071bd99e4472b5ada3a5a30f8 100644 (file)
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -4,7 +4,7 @@
     Changes/additions Copyright (C) 1998 R.E.Wolff@BitWizard.nl
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
@@ -94,7 +94,7 @@ int gtk_detect(
 {
     if (getenv("DISPLAY") != NULL) {
         /* If we do this here, gtk_init exits on an error. This happens
-           BEFORE the user has had a chance to tell us not to use the 
+           BEFORE the user has had a chance to tell us not to use the
            display... */
         return TRUE;
     } else {
@@ -568,7 +568,7 @@ void gtk_redraw(
 }
 
 // GTK 3 has changed the interface a bit. Here a few defines so that we can
-// work with GTK2 or GTK3 as required. 
+// work with GTK2 or GTK3 as required.
 #ifdef HAVE_GTK3
 #define gtk_vbox_new_(orientation,sz) gtk_box_new(orientation, sz)
 #define gtk_hbox_new_(orientation,sz) gtk_box_new(orientation, sz)
index 7bb197509ab8b69ca77a91fce90f44bd935e862c..4f3359f75024851864aa7500deb2fb9c1ae132da 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 524de1c7e80cf976da66a3155d92ad30bf77ce69..a3691f5d8e07e70a4f8107466b4d661be7e7e3f5 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 9297be746dca3ae585f9543e384fe89f9da2e17b..8be1da9a161744a2f71fbdb08fa614868ca5599e 100644 (file)
--- a/ui/mtr.h
+++ b/ui/mtr.h
@@ -4,7 +4,7 @@
     Copyright (C) 2005 R.E.Wolff@BitWizard.nl
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 23d581442f640a0749d805b78691e80607a0a6bb..efeb7822e87f492b57e58e3abc37a7139a3b362e 100644 (file)
--- a/ui/net.c
+++ b/ui/net.c
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
@@ -547,18 +547,18 @@ int net_send_batch(
     int n_unknown = 0, i;
     int restart = 0;
 
-    /* randomized packet size and/or bit pattern if packetsize<0 and/or 
-       bitpattern<0.  abs(packetsize) and/or abs(bitpattern) will be used 
+    /* randomized packet size and/or bit pattern if packetsize<0 and/or
+       bitpattern<0.  abs(packetsize) and/or abs(bitpattern) will be used
      */
     if (batch_at < ctl->fstTTL) {
         if (ctl->cpacketsize < 0) {
-            /* Someone used a formula here that tried to correct for the 
-               "end-error" in "rand()". By "end-error" I mean that if you 
-               have a range for "rand()" that runs to 32768, and the 
-               destination range is 10000, you end up with 4 out of 32768 
-               0-2768's and only 3 out of 32768 for results 2769 .. 9999. 
-               As our destination range (in the example 10000) is much 
-               smaller (reasonable packet sizes), and our rand() range much 
+            /* Someone used a formula here that tried to correct for the
+               "end-error" in "rand()". By "end-error" I mean that if you
+               have a range for "rand()" that runs to 32768, and the
+               destination range is 10000, you end up with 4 out of 32768
+               0-2768's and only 3 out of 32768 for results 2769 .. 9999.
+               As our destination range (in the example 10000) is much
+               smaller (reasonable packet sizes), and our rand() range much
                larger, this effect is insignificant. Oh! That other formula
                didn't work. */
             packetsize =
@@ -578,9 +578,9 @@ int net_send_batch(
         if (host_addr_cmp(i, &ctl->unspec_addr, ctl->af) == 0)
             n_unknown++;
 
-        /* The second condition in the next "if" statement was added in mtr-0.56, 
+        /* The second condition in the next "if" statement was added in mtr-0.56,
            but I don't remember why. It makes mtr stop skipping sections of unknown
-           hosts. Removed in 0.65. 
+           hosts. Removed in 0.65.
            If the line proves necessary, it should at least NOT trigger that line
            when host[i].addr == 0 */
         if (host_addr_cmp(i, remoteaddress, ctl->af) == 0) {
index b323c2521f18b77fea20319881e1ff192046d594..354c99845bf947687ec44ee4d89e155b7d67cecb 100644 (file)
--- a/ui/net.h
+++ b/ui/net.h
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 85e87e801a78eef787c95185975bf58d6badd763..74ed35fca2f6dd5ffd3428f32217ecd79b74161e 100644 (file)
--- a/ui/raw.c
+++ b/ui/raw.c
@@ -5,7 +5,7 @@
     raw.c -- raw output (for logging for later analysis)
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 3c9a075373e61a8c6fcf81e8b07cb48dbfacea07..f3fde96692798335353add1e4961622f2b627636 100644 (file)
--- a/ui/raw.h
+++ b/ui/raw.h
@@ -5,7 +5,7 @@
     raw.h -- raw output (for logging for later analysis)
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 96eb46f39287810b5f7379825463c88e26efd85b..dffc431b9ec3fb71f2f473208a1e5b6e3f964608 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 26748ac28404b1154640a34d67b92a13f0005d84..1a9f5c215f2d01cf2c12828003878efd42124c84 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index a6b276443c21c0662a92a7b9b320e10ec15ae2c7..6567b6607a6f534029f092bfb432b907f7579328 100644 (file)
@@ -3,7 +3,7 @@
     Copyright (C) 1997,1998  Matt Kimball
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
index 17554520bc6ac3e55be3af1b9eae9e008560ae82..c88b4feb72e2c2698f37fd3d8c4f6e0a188b1c1f 100644 (file)
@@ -7,7 +7,7 @@
     Copyright (C) 1998  Bertrand Leconte <B.Leconte@mail.dotcom.fr>
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
@@ -77,7 +77,7 @@ void split_redraw(
     fprintf(stderr, "split_redraw()\n");
 #endif
 
-    /* 
+    /*
      * If there is less lines than last time, we delete them
      * TEST THIS PLEASE
      */
@@ -166,7 +166,7 @@ int split_keyaction(
     tv.tv_usec = 0;
 
     if (select(1, &readfds, NULL, NULL, &tv) > 0) {
-        if (read(0, &c, 1) <= 0) 
+        if (read(0, &c, 1) <= 0)
           return ActionQuit;
     } else
         return 0;
index d6938c72a70ed89514e8194e72e0597b4664ce9d..c2b6094dd037a58dcdc87e318a3a9efe2be8f944 100644 (file)
@@ -5,7 +5,7 @@
     Copyright (C) 1998  Bertrand Leconte <B.Leconte@mail.dotcom.fr>
 
     This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License version 2 as 
+    it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,