aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_multipeer.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-02 14:15:43 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-02 14:15:43 +0000
commit399847d7a28ab59d8ca4e8600b0cdc7781892bbe (patch)
tree1fc10767c065544802388e97dedac4299da48e1e /src/dht/test_dht_multipeer.c
parent4ac2347bb68f272caee9a243863fcaec483ed2dc (diff)
downloadgnunet-399847d7a28ab59d8ca4e8600b0cdc7781892bbe.tar.gz
gnunet-399847d7a28ab59d8ca4e8600b0cdc7781892bbe.zip
make third test compile
Diffstat (limited to 'src/dht/test_dht_multipeer.c')
-rw-r--r--src/dht/test_dht_multipeer.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/dht/test_dht_multipeer.c b/src/dht/test_dht_multipeer.c
index 73382494b..288cf76b6 100644
--- a/src/dht/test_dht_multipeer.c
+++ b/src/dht/test_dht_multipeer.c
@@ -57,7 +57,9 @@
57 57
58struct TestPutContext 58struct TestPutContext
59{ 59{
60 /* This is a linked list */ 60 /**
61 * This is a linked list
62 */
61 struct TestPutContext *next; 63 struct TestPutContext *next;
62 64
63 /** 65 /**
@@ -278,7 +280,7 @@ finish_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
278 if (test_get->disconnect_task != GNUNET_SCHEDULER_NO_TASK) 280 if (test_get->disconnect_task != GNUNET_SCHEDULER_NO_TASK)
279 GNUNET_SCHEDULER_cancel(sched, test_get->disconnect_task); 281 GNUNET_SCHEDULER_cancel(sched, test_get->disconnect_task);
280 if (test_get->get_handle != NULL) 282 if (test_get->get_handle != NULL)
281 GNUNET_DHT_get_stop(test_get->get_handle, NULL, NULL); 283 GNUNET_DHT_get_stop(test_get->get_handle);
282 if (test_get->dht_handle != NULL) 284 if (test_get->dht_handle != NULL)
283 GNUNET_DHT_disconnect(test_get->dht_handle); 285 GNUNET_DHT_disconnect(test_get->dht_handle);
284 test_get = test_get->next; 286 test_get = test_get->next;
@@ -316,7 +318,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
316 if (test_get->disconnect_task != GNUNET_SCHEDULER_NO_TASK) 318 if (test_get->disconnect_task != GNUNET_SCHEDULER_NO_TASK)
317 GNUNET_SCHEDULER_cancel(sched, test_get->disconnect_task); 319 GNUNET_SCHEDULER_cancel(sched, test_get->disconnect_task);
318 if (test_get->get_handle != NULL) 320 if (test_get->get_handle != NULL)
319 GNUNET_DHT_get_stop(test_get->get_handle, NULL, NULL); 321 GNUNET_DHT_get_stop(test_get->get_handle);
320 if (test_get->dht_handle != NULL) 322 if (test_get->dht_handle != NULL)
321 GNUNET_DHT_disconnect(test_get->dht_handle); 323 GNUNET_DHT_disconnect(test_get->dht_handle);
322 test_get = test_get->next; 324 test_get = test_get->next;
@@ -370,7 +372,8 @@ get_stop_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
370 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Get from peer %s for key %s failed!\n", test_get->daemon->shortname, GNUNET_h2s(&search_key)); 372 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Get from peer %s for key %s failed!\n", test_get->daemon->shortname, GNUNET_h2s(&search_key));
371 } 373 }
372 GNUNET_assert(test_get->get_handle != NULL); 374 GNUNET_assert(test_get->get_handle != NULL);
373 GNUNET_DHT_get_stop(test_get->get_handle, &get_stop_finished, test_get); 375 GNUNET_DHT_get_stop(test_get->get_handle);
376 GNUNET_SCHEDULER_add_now (sched, &get_stop_finished, test_get);
374 test_get->get_handle = NULL; 377 test_get->get_handle = NULL;
375 test_get->disconnect_task = GNUNET_SCHEDULER_NO_TASK; 378 test_get->disconnect_task = GNUNET_SCHEDULER_NO_TASK;
376} 379}