summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-09-13 07:14:25 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-09-13 07:14:25 +0000
commit446e1e6f857f92c380edfbe22841d72b13904774 (patch)
tree5f8c852d3923dafaebd8611d78eff13f4857b51f /sbin
parent7b7f9f68b714083ce8edcea386e35441488654cf (diff)
No need to have this global.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ping/ping.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index eeeae855f69..2c61b5e4eb9 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.180 2016/09/13 07:11:56 florian Exp $ */
+/* $OpenBSD: ping.c,v 1.181 2016/09/13 07:14:24 florian Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -187,7 +187,6 @@ double tmin = 999999999.0; /* minimum round trip time */
double tmax = 0.0; /* maximum round trip time */
double tsum = 0.0; /* sum of all times, for doing average */
double tsumsq = 0.0; /* sum of all times squared, for std. dev. */
-int bufspace = IP_MAXPACKET;
struct tv64 tv64_offset;
SIPHASH_KEY mac_key;
@@ -226,7 +225,7 @@ main(int argc, char *argv[])
socklen_t maxsizelen;
int64_t preload;
int ch, i, optval = 1, packlen, maxsize, error;
- int df = 0, tos = 0;
+ int df = 0, tos = 0, bufspace = IP_MAXPACKET;
u_char *datap, *packet, loop = 1;
u_char ttl = MAXTTL;
char *e, *target, hbuf[NI_MAXHOST], *source = NULL;