diff options
author | maxim <maxim@FreeBSD.org> | 2016-03-11 16:03:47 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2016-03-11 16:03:47 +0000 |
commit | 986728b2546cacf72ad5eceebc3c9b7e118561c4 (patch) | |
tree | fe84f700bd58cbe9f89eec950609710c73c2bb80 /sbin/ping | |
parent | 5c49f37ec40e2afa98cce3c9272acbe063323e27 (diff) | |
download | FreeBSD-src-986728b2546cacf72ad5eceebc3c9b7e118561c4.zip FreeBSD-src-986728b2546cacf72ad5eceebc3c9b7e118561c4.tar.gz |
o Kill EoL whitespaces. No functional changes.
Diffstat (limited to 'sbin/ping')
-rw-r--r-- | sbin/ping/ping.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 1831cb7..1fc1963 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -807,7 +807,7 @@ main(int argc, char *const *argv) datalen = sweepmin; send_len = icmp_len + sweepmin; } - if (options & F_SWEEP && !sweepmax) + if (options & F_SWEEP && !sweepmax) errx(EX_USAGE, "Maximum sweep size must be specified"); /* @@ -845,9 +845,9 @@ main(int argc, char *const *argv) if (sweepmax) (void)printf(": (%d ... %d) data bytes\n", sweepmin, sweepmax); - else + else (void)printf(": %d data bytes\n", datalen); - + } else { if (sweepmax) (void)printf("PING %s: (%d ... %d) data bytes\n", @@ -969,14 +969,14 @@ main(int argc, char *const *argv) } if (n == 0 || options & F_FLOOD) { if (sweepmax && sntransmitted == snpackets) { - for (i = 0; i < sweepincr ; ++i) + for (i = 0; i < sweepincr ; ++i) *datap++ = i; datalen += sweepincr; if (datalen > sweepmax) break; send_len = icmp_len + datalen; sntransmitted = 0; - } + } if (!npackets || ntransmitted < npackets) pinger(); else { @@ -1179,7 +1179,7 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from, struct timeval *tv) if (options & F_QUIET) return; - + if (options & F_WAITTIME && triptime > waittime) { ++nrcvtimeout; return; |