Page MenuHomeFreeBSD

ping: main.c: Consistent use of white space/tabs
ClosedPublic

Authored by jlduran on Nov 3 2022, 9:49 AM.
Tags
None
Referenced Files
F102812859: D37246.id112541.diff
Sun, Nov 17, 12:41 PM
Unknown Object (File)
Mon, Nov 4, 3:45 PM
Unknown Object (File)
Sep 30 2024, 4:30 PM
Unknown Object (File)
Sep 30 2024, 4:24 PM
Unknown Object (File)
Sep 30 2024, 2:29 PM
Unknown Object (File)
Sep 16 2024, 9:08 PM
Unknown Object (File)
Sep 16 2024, 12:40 AM
Unknown Object (File)
Sep 13 2024, 7:56 AM

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable