projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move bit distance function into util
[oweals/gnunet.git]
/
src
/
dht
/
gnunet-dht-get.c
diff --git
a/src/dht/gnunet-dht-get.c
b/src/dht/gnunet-dht-get.c
index de36610bdab66c0087fe7943913a0dee170a81c9..023188f3505c78a067f41c1b2a0b2eb6762fc079 100644
(file)
--- 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
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
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);
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);
}
&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"),
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?"),
{'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},
{'V', "verbose", NULL,
gettext_noop ("be verbose (print progress information)"),
0, &GNUNET_GETOPT_set_one, &verbose},