diff options
author | 2015-11-06 19:13:36 +0000 | |
---|---|---|
committer | 2015-11-06 19:13:36 +0000 | |
commit | 65187748c3c7e21fe6e206fb047b30d036ec4da0 (patch) | |
tree | 86938f35932be4d732627ef9a0d5dc426021685f | |
parent | I was very optimistic in groupling creation. Turns out lists of targets (diff) | |
download | wireguard-openbsd-65187748c3c7e21fe6e206fb047b30d036ec4da0.tar.xz wireguard-openbsd-65187748c3c7e21fe6e206fb047b30d036ec4da0.zip |
"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.
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 5 |
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; |