From 787ad33cb683431e22a236b890f0e349e1d3f8fb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 13 May 2018 19:01:30 +0200 Subject: truly use all DNS results for NS lookup --- src/gnsrecord/gnsrecord.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gnsrecord/gnsrecord.c') diff --git a/src/gnsrecord/gnsrecord.c b/src/gnsrecord/gnsrecord.c index 35005b5ca..8fc039fc6 100644 --- a/src/gnsrecord/gnsrecord.c +++ b/src/gnsrecord/gnsrecord.c @@ -207,7 +207,6 @@ GNUNET_GNSRECORD_string_to_value (uint32_t type, uint32_t GNUNET_GNSRECORD_typename_to_number (const char *dns_typename) { - unsigned int i; struct Plugin *plugin; uint32_t ret; @@ -215,7 +214,7 @@ GNUNET_GNSRECORD_typename_to_number (const char *dns_typename) "ANY")) return GNUNET_GNSRECORD_TYPE_ANY; init (); - for (i = 0; i < num_plugins; i++) + for (unsigned int i = 0; i < num_plugins; i++) { plugin = gns_plugins[i]; if (UINT32_MAX != (ret = plugin->api->typename_to_number (plugin->api->cls, -- cgit v1.2.3