aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-dht-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-dht-monitor.c')
-rw-r--r--src/dht/gnunet-dht-monitor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dht/gnunet-dht-monitor.c b/src/dht/gnunet-dht-monitor.c
index b03c7c7c0..6ec29030d 100644
--- a/src/dht/gnunet-dht-monitor.c
+++ b/src/dht/gnunet-dht-monitor.c
@@ -152,7 +152,7 @@ get_resp_callback (void *cls,
152 const void *data, 152 const void *data,
153 size_t size) 153 size_t size)
154{ 154{
155 FPRINTF (stdout, 155 FPRINTF (stdout,
156 "RESPONSE #%u: type %d, key `%s', data `%.*s'\n", 156 "RESPONSE #%u: type %d, key `%s', data `%.*s'\n",
157 result_count, 157 result_count,
158 (int) type, 158 (int) type,
@@ -191,7 +191,7 @@ put_callback (void *cls,
191 const void *data, 191 const void *data,
192 size_t size) 192 size_t size)
193{ 193{
194 FPRINTF (stdout, 194 FPRINTF (stdout,
195 "PUT %u: type %d, key `%s', data `%.*s'\n", 195 "PUT %u: type %d, key `%s', data `%.*s'\n",
196 result_count, 196 result_count,
197 (int) type, 197 (int) type,
@@ -221,14 +221,14 @@ run (void *cls, char *const *args, const char *cfgfile,
221 221
222 if (NULL == (dht_handle = GNUNET_DHT_connect (cfg, 1))) 222 if (NULL == (dht_handle = GNUNET_DHT_connect (cfg, 1)))
223 { 223 {
224 FPRINTF (stderr, "%s", 224 FPRINTF (stderr, "%s",
225 _("Failed to connect to DHT service!\n")); 225 _("Failed to connect to DHT service!\n"));
226 ret = 1; 226 ret = 1;
227 return; 227 return;
228 } 228 }
229 if (GNUNET_BLOCK_TYPE_ANY == block_type) /* Type of data not set */ 229 if (GNUNET_BLOCK_TYPE_ANY == block_type) /* Type of data not set */
230 block_type = GNUNET_BLOCK_TYPE_TEST; 230 block_type = GNUNET_BLOCK_TYPE_TEST;
231 if (NULL != query_key) 231 if (NULL != query_key)
232 { 232 {
233 key = &hc; 233 key = &hc;
234 if (GNUNET_OK != 234 if (GNUNET_OK !=
@@ -240,8 +240,8 @@ run (void *cls, char *const *args, const char *cfgfile,
240 key = NULL; 240 key = NULL;
241 } 241 }
242 if (verbose) 242 if (verbose)
243 FPRINTF (stderr, 243 FPRINTF (stderr,
244 "Monitoring for %s\n", 244 "Monitoring for %s\n",
245 GNUNET_STRINGS_relative_time_to_string (timeout_request, GNUNET_NO)); 245 GNUNET_STRINGS_relative_time_to_string (timeout_request, GNUNET_NO));
246 GNUNET_SCHEDULER_add_delayed (timeout_request, &cleanup_task, NULL); 246 GNUNET_SCHEDULER_add_delayed (timeout_request, &cleanup_task, NULL);
247 monitor_handle = GNUNET_DHT_monitor_start (dht_handle, 247 monitor_handle = GNUNET_DHT_monitor_start (dht_handle,