From 8e9623ab5998af6532d8dc2db6e899e2b1a75370 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 15 Jun 2008 15:53:04 +0200 Subject: [PATCH] resolver: Remove effectively unused 'resend' flag. --- src/res.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/res.c b/src/res.c index a9f60d85..81e23c09 100644 --- a/src/res.c +++ b/src/res.c @@ -66,7 +66,6 @@ struct reslist char queryname[128]; /* name currently being queried */ char retries; /* retry counter */ char sends; /* number of sends (>1 means resent) */ - char resend; /* send flag. 0 == dont resend */ time_t sentat; time_t timeout; struct rb_sockaddr_storage addr; @@ -287,7 +286,6 @@ static struct reslist *make_request(struct DNSQuery *query) request->sentat = rb_current_time(); request->retries = 3; - request->resend = 1; request->timeout = 4; /* start at 4 and exponential inc. */ request->query = query; @@ -506,9 +504,6 @@ static void query_name(struct reslist *request) static void resend_query(struct reslist *request) { - if (request->resend == 0) - return; - switch (request->type) { case T_PTR: