summaryrefslogtreecommitdiff
path: root/networking/traceroute.c
diff options
context:
space:
mode:
authorMike Frysinger2006-08-24 03:06:55 +0000
committerMike Frysinger2006-08-24 03:06:55 +0000
commitf23b96cebfe169eee7131efd8b879748587d1845 (patch)
treea4a0caf443011bdfed1e103871066ea8fb90faf3 /networking/traceroute.c
parentf86a5ba510ef62ab46d14bd0761a1d88289a398d (diff)
downloadbusybox-1_2_1.zip
busybox-1_2_1.tar.gz
tag busybox-1.2.11_2_1
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r--networking/traceroute.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index c2084fc..b7046a0 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -548,7 +548,7 @@ static int
wait_for_reply(int sock, struct sockaddr_in *fromp, const struct timeval *tp)
{
fd_set fds;
- struct timeval now, tvwait;
+ struct timeval now, wait;
struct timezone tz;
int cc = 0;
socklen_t fromlen = sizeof(*fromp);
@@ -556,12 +556,12 @@ wait_for_reply(int sock, struct sockaddr_in *fromp, const struct timeval *tp)
FD_ZERO(&fds);
FD_SET(sock, &fds);
- tvwait.tv_sec = tp->tv_sec + waittime;
- tvwait.tv_usec = tp->tv_usec;
+ wait.tv_sec = tp->tv_sec + waittime;
+ wait.tv_usec = tp->tv_usec;
(void)gettimeofday(&now, &tz);
- tvsub(&tvwait, &now);
+ tvsub(&wait, &now);
- if (select(sock + 1, &fds, NULL, NULL, &tvwait) > 0)
+ if (select(sock + 1, &fds, NULL, NULL, &wait) > 0)
cc = recvfrom(sock, (char *)packet, sizeof(packet), 0,
(struct sockaddr *)fromp, &fromlen);