diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-08-08 23:53:22 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-08-08 23:53:22 +0000 |
commit | 86a8f80fb67e72c1dbe3c24fa52e14c29aed8c42 (patch) | |
tree | 2a37281a7cfdc872c95ae29448f790471da25583 /usr.sbin/traceroute6/traceroute6.c | |
parent | c8f228f0b2c623c862078ed8abcb743e30e149f6 (diff) |
remove unused struct timezone; ok itojun@
Diffstat (limited to 'usr.sbin/traceroute6/traceroute6.c')
-rw-r--r-- | usr.sbin/traceroute6/traceroute6.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index 1e1f1821946..d70a7e09304 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traceroute6.c,v 1.25 2002/06/29 07:46:11 itojun Exp $ */ +/* $OpenBSD: traceroute6.c,v 1.26 2002/08/08 23:53:21 stevesk Exp $ */ /* $KAME: traceroute6.c,v 1.50 2002/05/26 13:12:07 itojun Exp $ */ /* @@ -320,7 +320,6 @@ void usage(void); int rcvsock; /* receive (icmp) socket file descriptor */ int sndsock; /* send (udp) socket file descriptor */ -struct timezone tz; /* leftover */ struct msghdr rcvmhdr; struct iovec rcviov[2]; @@ -832,12 +831,11 @@ main(argc, argv) for (probe = 0; probe < nprobes; ++probe) { int cc; struct timeval t1, t2; - struct timezone tz; - (void) gettimeofday(&t1, &tz); + (void) gettimeofday(&t1, NULL); send_probe(++seq, hops); while ((cc = wait_for_reply(rcvsock, &rcvmhdr))) { - (void) gettimeofday(&t2, &tz); + (void) gettimeofday(&t2, NULL); if ((i = packet_ok(&rcvmhdr, cc, seq))) { if (! IN6_ARE_ADDR_EQUAL(&Rcv.sin6_addr, &lastaddr)) { @@ -963,7 +961,7 @@ send_probe(seq, hops) op->seq = seq; op->hops = hops; - (void) gettimeofday(&op->tv, &tz); + (void) gettimeofday(&op->tv, NULL); i = sendto(sndsock, (char *)outpacket, datalen , 0, (struct sockaddr *)&Dst, Dst.sin6_len); |