summaryrefslogtreecommitdiff
path: root/sbin/ping
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-09-10 07:46:21 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-09-10 07:46:21 +0000
commitaa7800785ac6896354add9b1ca33588d42eb1590 (patch)
tree681c5dfdaa699bf9d074f09929b4249ebc266455 /sbin/ping
parentc72265904a1709c28fc7d560afe3e5e600e15a79 (diff)
reorder main variables, no object change, reduces diff to ping6
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 3c49e85f2aa..f2c6fd4a718 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.158 2016/09/10 07:42:20 florian Exp $ */
+/* $OpenBSD: ping.c,v 1.159 2016/09/10 07:46:20 florian Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
@@ -197,7 +197,8 @@ main(int argc, char *argv[])
int64_t preload;
int ch, i, optval = 1, packlen, maxsize, error;
int df = 0, tos = 0;
- u_char *datap, *packet, ttl = MAXTTL, loop = 1;
+ u_char *datap, *packet, loop = 1;
+ u_char ttl = MAXTTL;
char *e, *target, hbuf[NI_MAXHOST], *source = NULL;
char rspace[3 + 4 * NROUTES + 1]; /* record route space */
const char *errstr;