summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-09-07 17:55:15 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-09-07 17:55:15 +0000
commitb979d871975b9fd22aa6a59b7cca059342752f54 (patch)
treebd0b0e7494375115a7d44905d78ca7cd8b92e675
parent3e7cc6b2cec3a4da358ec2660513ca88cfaa58ee (diff)
normalize code to send preload packets
-rw-r--r--sbin/ping/ping.c4
-rw-r--r--sbin/ping6/ping6.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 38e40505bd3..bed3069bcca 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.150 2016/09/07 17:53:53 florian Exp $ */
+/* $OpenBSD: ping.c,v 1.151 2016/09/07 17:55:14 florian Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
@@ -537,7 +537,7 @@ main(int argc, char *argv[])
printf("PING %s (%s): %d data bytes\n", hostname,
pr_addr((struct sockaddr *)&dst, sizeof(dst)), datalen);
- while (preload--) /* fire off them quickies */
+ while (preload--) /* Fire off them quickies. */
pinger();
(void)signal(SIGINT, onsignal);
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 2efc557120f..dc2d85c2e15 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.155 2016/09/04 10:44:28 florian Exp $ */
+/* $OpenBSD: ping6.c,v 1.156 2016/09/07 17:55:14 florian Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
@@ -627,7 +627,7 @@ main(int argc, char *argv[])
sizeof(dst)), datalen);
while (preload--) /* Fire off them quickies. */
- (void)pinger();
+ pinger();
(void)signal(SIGINT, onsignal);
(void)signal(SIGINFO, onsignal);