From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Zaitcev Subject: [Patch] libcldc: drop unused variable `n' Date: Tue, 4 Aug 2009 17:41:13 -0600 Message-ID: <20090804174113.2d131e8c@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jeff Garzik , Project Hail List Signed-Off-By: Pete Zaitcev diff --git a/lib/cldc-dns.c b/lib/cldc-dns.c index 7d67365..ad375e6 100644 --- a/lib/cldc-dns.c +++ b/lib/cldc-dns.c @@ -172,7 +172,6 @@ int cldc_getaddr(GList **host_list, const char *thishost, bool verbose, char hostb[hostsz]; int i; struct cldc_host hp; - int n; const unsigned char *p; int rc; int search_retries = 10; @@ -221,7 +220,6 @@ do_try_again: return -1; } - n = 0; for (i = 0; i < ns_msg_count(nsb, ns_s_an); i++) { rc = ns_parserr(&nsb, ns_s_an, i, &rrb); if (rc < 0) @@ -266,7 +264,6 @@ do_try_again: break; hp.known = 1; - n++; push_host(host_list, &hp); break;