git: 92a6c0f781d3 - stable/13 - ping: main.c: Consistent use of white space/tabs

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 10 Nov 2022 17:02:27 UTC
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=92a6c0f781d3aa324b6c737061bfb954375ae9fd

commit 92a6c0f781d3aa324b6c737061bfb954375ae9fd
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2022-11-01 05:19:22 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-11-10 17:01:29 +0000

    ping: main.c: Consistent use of white space/tabs
    
    If a user has tabs set at a value other than 8, the output of the usage
    may not be consistently aligned.
    
        % tabs -2
    
    Before:
        % ping
        usage:
          ping [-4AaDdfHnoQqRrv] [-C pcp] [-c count] [-G sweepmaxsize]
              [-g sweepminsize] [-h sweepincrsize] [-i wait] [-l preload]
              [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
              [-s packetsize] [-t timeout] [-W waittime] [-z tos] IPv4-host
          ping [-4AaDdfHLnoQqRrv] [-C pcp] [-c count] [-I iface] [-i wait]
              [-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern]
              [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
                    [-z tos] IPv4-mcast-group
          ping [-6AaDdfHnNoOquvyY] [-b bufsiz] [-c count] [-e gateway]
                    [-I interface] [-i wait] [-k addrtype] [-l preload] [-m hoplimit]
                    [-p pattern] [-P policy] [-S sourceaddr] [-s packetsize] [-t timeout]
              [-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host
    
    After:
        % ping
        usage:
          ping [-4AaDdfHnoQqRrv] [-C pcp] [-c count] [-G sweepmaxsize]
              [-g sweepminsize] [-h sweepincrsize] [-i wait] [-l preload]
              [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
              [-s packetsize] [-t timeout] [-W waittime] [-z tos] IPv4-host
          ping [-4AaDdfHLnoQqRrv] [-C pcp] [-c count] [-I iface] [-i wait]
              [-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern]
              [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
              [-z tos] IPv4-mcast-group
          ping [-6AaDdfHnNoOquvyY] [-b bufsiz] [-c count] [-e gateway]
              [-I interface] [-i wait] [-k addrtype] [-l preload] [-m hoplimit]
              [-p pattern] [-P policy] [-S sourceaddr] [-s packetsize] [-t timeout]
              [-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host
    
    Reviewed by:    markj
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D37246
    
    (cherry picked from commit 526e8a7d5db390d1cbf490d8e1e0b41e057d81bf)
---
 sbin/ping/main.c | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/sbin/ping/main.c b/sbin/ping/main.c
index 11fa17b5ce2d..fce58e05bd2f 100644
--- a/sbin/ping/main.c
+++ b/sbin/ping/main.c
@@ -180,48 +180,48 @@ usage(void)
 #ifdef INET
 	    "\tping [-4AaDdfHnoQqRrv] [-C pcp] [-c count] "
 	    "[-G sweepmaxsize]\n"
-	    "	    [-g sweepminsize] [-h sweepincrsize] [-i wait] "
+	    "\t    [-g sweepminsize] [-h sweepincrsize] [-i wait] "
 	    "[-l preload]\n"
-	    "	    [-M mask | time] [-m ttl] "
+	    "\t    [-M mask | time] [-m ttl] "
 #ifdef IPSEC
 	    "[-P policy] "
 #endif
 	    "[-p pattern] [-S src_addr] \n"
-	    "	    [-s packetsize] [-t timeout] [-W waittime] [-z tos] "
+	    "\t    [-s packetsize] [-t timeout] [-W waittime] [-z tos] "
 	    "IPv4-host\n"
 	    "\tping [-4AaDdfHLnoQqRrv] [-C pcp] [-c count] [-I iface] "
 	    "[-i wait]\n"
-	    "	    [-l preload] [-M mask | time] [-m ttl] "
+	    "\t    [-l preload] [-M mask | time] [-m ttl] "
 #ifdef IPSEC
 	    "[-P policy] "
 #endif
 	    "[-p pattern]\n"
-	    "	    [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]\n"
-	    "            [-z tos] IPv4-mcast-group\n"
+	    "\t    [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-W waittime]\n"
+	    "\t    [-z tos] IPv4-mcast-group\n"
 #endif /* INET */
 #ifdef INET6
-            "\tping [-6AaDd"
+	    "\tping [-6AaDd"
 #if defined(IPSEC) && !defined(IPSEC_POLICY_IPSEC)
-            "E"
+	    "E"
 #endif
-            "fHnNoOq"
+	    "fHnNoOq"
 #ifdef IPV6_USE_MIN_MTU
-            "u"
+	    "u"
 #endif
-            "vyY"
+	    "vyY"
 #if defined(IPSEC) && !defined(IPSEC_POLICY_IPSEC)
-            "Z"
+	    "Z"
 #endif
 	    "] "
-            "[-b bufsiz] [-c count] [-e gateway]\n"
-            "            [-I interface] [-i wait] [-k addrtype] [-l preload] "
-            "[-m hoplimit]\n"
-            "            [-p pattern]"
+	    "[-b bufsiz] [-c count] [-e gateway]\n"
+	    "\t    [-I interface] [-i wait] [-k addrtype] [-l preload] "
+	    "[-m hoplimit]\n"
+	    "\t    [-p pattern]"
 #if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC)
-            " [-P policy]"
+	    " [-P policy]"
 #endif
-            " [-S sourceaddr] [-s packetsize] [-t timeout]\n"
-	    "	    [-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host\n"
+	    " [-S sourceaddr] [-s packetsize] [-t timeout]\n"
+	    "\t    [-W waittime] [-z tclass] [IPv6-hops ...] IPv6-host\n"
 #endif	/* INET6 */
 	    );