diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2016-09-13 07:15:04 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2016-09-13 07:15:04 +0000 |
commit | ead968b93508b3c43b063e2209fbe8b9d6046ae9 (patch) | |
tree | a2b5545ced06e6473248b42d17b6e406014e0b6c /sbin/ping | |
parent | 446e1e6f857f92c380edfbe22841d72b13904774 (diff) |
No need to have the destination global.
Diffstat (limited to 'sbin/ping')
-rw-r--r-- | sbin/ping/ping.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 2c61b5e4eb9..cfe03c032f0 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping.c,v 1.181 2016/09/13 07:14:24 florian Exp $ */ +/* $OpenBSD: ping.c,v 1.182 2016/09/13 07:15:03 florian Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -161,7 +161,6 @@ int moptions; int mx_dup_ck = MAX_DUP_CHK; char rcvd_tbl[MAX_DUP_CHK / 8]; -struct sockaddr_in dst; /* who to ping */ int datalen = DEFDATALEN; int s; /* socket file descriptor */ u_char outpackhdr[IP_MAXPACKET]; /* Max packet size = 65535 */ @@ -221,7 +220,7 @@ main(int argc, char *argv[]) { struct addrinfo hints, *res; struct itimerval itimer; - struct sockaddr_in from, from4; + struct sockaddr_in from, from4, dst; socklen_t maxsizelen; int64_t preload; int ch, i, optval = 1, packlen, maxsize, error; |