All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] libcldc: drop unused variable `n'
@ 2009-08-04 23:41 Pete Zaitcev
  2009-08-05  0:26 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Pete Zaitcev @ 2009-08-04 23:41 UTC (permalink / raw)
  To: Jeff Garzik, Project Hail List

Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>

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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Patch] libcldc: drop unused variable `n'
  2009-08-04 23:41 [Patch] libcldc: drop unused variable `n' Pete Zaitcev
@ 2009-08-05  0:26 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2009-08-05  0:26 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: Project Hail List

Pete Zaitcev wrote:
> Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>

applied



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-05  0:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-04 23:41 [Patch] libcldc: drop unused variable `n' Pete Zaitcev
2009-08-05  0:26 ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.