summaryrefslogtreecommitdiff
path: root/sbin/ping6
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-09-10 07:41:37 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-09-10 07:41:37 +0000
commitf992e5f2738c0a51f8c372267bf8cdd762ce296c (patch)
tree8758491da05812c186989e263fd4cd806ab076f4 /sbin/ping6
parent954a276dcf3300f8aaf59d0d49c2c3594aaa38d8 (diff)
reorder main variables; no obj change
Diffstat (limited to 'sbin/ping6')
-rw-r--r--sbin/ping6/ping6.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index eb54d87f6dc..34a59ecae28 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.159 2016/09/10 07:31:43 florian Exp $ */
+/* $OpenBSD: ping6.c,v 1.160 2016/09/10 07:41:36 florian Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
@@ -226,16 +226,14 @@ void pr_retip(struct ip6_hdr *, u_char *);
int
main(int argc, char *argv[])
{
- struct addrinfo *res;
+ struct addrinfo hints, *res;
struct itimerval itimer;
struct sockaddr_in6 from, from6;
- struct addrinfo hints;
+ socklen_t maxsizelen;
int64_t preload;
int ch, i, maxsize, packlen, optval, error;
- socklen_t maxsizelen;
u_char *datap, *packet;
- char *e, *target, hbuf[NI_MAXHOST];
- char *source = NULL;
+ char *e, *target, hbuf[NI_MAXHOST], *source = NULL;
const char *errstr;
struct cmsghdr *scmsg = NULL;
struct in6_pktinfo *pktinfo = NULL;