aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-zoneimport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-zoneimport.c')
-rw-r--r--src/namestore/gnunet-zoneimport.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c
index 2926fe9bd..4fd0f3aef 100644
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@ -268,11 +268,6 @@ static struct Request *req_tail;
268static struct GNUNET_SCHEDULER_Task *t; 268static struct GNUNET_SCHEDULER_Task *t;
269 269
270/** 270/**
271 * Which DNS server do we use for queries?
272 */
273static char *dns_server;
274
275/**
276 * Head of list of zones we are managing. 271 * Head of list of zones we are managing.
277 */ 272 */
278static struct Zone *zone_head; 273static struct Zone *zone_head;
@@ -1454,13 +1449,13 @@ run (void *cls,
1454 "Failed to initialize GNUnet DNS STUB\n"); 1449 "Failed to initialize GNUnet DNS STUB\n");
1455 return; 1450 return;
1456 } 1451 }
1457 if (NULL == args[1]) 1452 if (NULL == args[0])
1458 { 1453 {
1459 fprintf (stderr, 1454 fprintf (stderr,
1460 "You must provide a list of DNS resolvers on the command line\n"); 1455 "You must provide a list of DNS resolvers on the command line\n");
1461 return; 1456 return;
1462 } 1457 }
1463 for (unsigned int i=1;NULL != args[i];i++) 1458 for (unsigned int i=0;NULL != args[i];i++)
1464 { 1459 {
1465 if (GNUNET_OK != 1460 if (GNUNET_OK !=
1466 GNUNET_DNSSTUB_add_dns_ip (ctx, 1461 GNUNET_DNSSTUB_add_dns_ip (ctx,
@@ -1500,12 +1495,6 @@ main (int argc,
1500 char *const*argv) 1495 char *const*argv)
1501{ 1496{
1502 struct GNUNET_GETOPT_CommandLineOption options[] = { 1497 struct GNUNET_GETOPT_CommandLineOption options[] = {
1503 GNUNET_GETOPT_option_mandatory
1504 (GNUNET_GETOPT_option_string ('s',
1505 "server",
1506 "IP",
1507 "which DNS server should be used",
1508 &dns_server)),
1509 GNUNET_GETOPT_OPTION_END 1498 GNUNET_GETOPT_OPTION_END
1510 }; 1499 };
1511 1500