X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdht%2Fgnunet-dht-get.c;h=023188f3505c78a067f41c1b2a0b2eb6762fc079;hb=09f4e2ed03d6861b78033328670256b430bafbbd;hp=de36610bdab66c0087fe7943913a0dee170a81c9;hpb=e4de5bb96aa6560bbd85ebca896e7cb36d426ad5;p=oweals%2Fgnunet.git diff --git a/src/dht/gnunet-dht-get.c b/src/dht/gnunet-dht-get.c index de36610bd..023188f35 100644 --- a/src/dht/gnunet-dht-get.c +++ b/src/dht/gnunet-dht-get.c @@ -4,7 +4,7 @@ GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your + by the Free Software Foundation; either version 3, or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but @@ -198,7 +198,7 @@ run (void *cls, if (verbose) fprintf (stderr, "Issuing GET request for %s!\n", query_key); - GNUNET_DHT_get_start (dht_handle, timeout, query_type, &key, + get_handle = GNUNET_DHT_get_start (dht_handle, timeout, query_type, &key, &get_result_iterator, NULL, &message_sent_cont, NULL); } @@ -213,10 +213,10 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = { 1, &GNUNET_GETOPT_set_string, &query_key}, {'t', "type", "TYPE", gettext_noop ("the type of data to look for"), - 0, &GNUNET_GETOPT_set_uint, &query_type}, + 1, &GNUNET_GETOPT_set_uint, &query_type}, {'T', "timeout", "TIMEOUT", gettext_noop ("how long to execute this query before giving up?"), - 0, &GNUNET_GETOPT_set_ulong, &timeout_request}, + 1, &GNUNET_GETOPT_set_ulong, &timeout_request}, {'V', "verbose", NULL, gettext_noop ("be verbose (print progress information)"), 0, &GNUNET_GETOPT_set_one, &verbose},