summaryrefslogtreecommitdiff
path: root/usr.sbin/traceroute
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2015-11-06 19:13:37 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2015-11-06 19:13:37 +0000
commitffa80374d711f0cc0d0fee5a5a7bd293066451d8 (patch)
tree1c96a2a2aa9d5a27f3cee0fd9cc5b1c5695c3ba5 /usr.sbin/traceroute
parent1aa149d5db7dc4025580d4a5d9864968eb47115c (diff)
"source" doesn't need to be a global. While here, the correct spelling
is NULL. Noticed while trying to hoist the source address selection from traceroute into ping / ping6.
Diffstat (limited to 'usr.sbin/traceroute')
-rw-r--r--usr.sbin/traceroute/traceroute.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c
index 0b8abfd444c..80bf8cf6f1c 100644
--- a/usr.sbin/traceroute/traceroute.c
+++ b/usr.sbin/traceroute/traceroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: traceroute.c,v 1.143 2015/10/09 01:37:10 deraadt Exp $ */
+/* $OpenBSD: traceroute.c,v 1.144 2015/11/06 19:13:36 florian Exp $ */
/* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */
/*
@@ -326,7 +326,6 @@ struct in6_pktinfo *rcvpktinfo;
int datalen; /* How much data */
int headerlen; /* How long packet's header is */
-char *source = 0;
char *hostname;
int nprobes = 3;
@@ -369,7 +368,7 @@ main(int argc, char *argv[])
u_int32_t tmprnd;
struct ip *ip = NULL;
u_int8_t ttl;
- char *ep, hbuf[NI_MAXHOST], *dest;
+ char *ep, hbuf[NI_MAXHOST], *dest, *source = NULL;
const char *errstr;
long l;
uid_t uid;