From 399847d7a28ab59d8ca4e8600b0cdc7781892bbe Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 2 Oct 2010 14:15:43 +0000 Subject: [PATCH] make third test compile --- src/dht/test_dht_multipeer.c | 11 +++++++---- 1 file 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 @@ struct TestPutContext { - /* This is a linked list */ + /** + * This is a linked list + */ struct TestPutContext *next; /** @@ -278,7 +280,7 @@ finish_testing (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc) if (test_get->disconnect_task != GNUNET_SCHEDULER_NO_TASK) GNUNET_SCHEDULER_cancel(sched, test_get->disconnect_task); if (test_get->get_handle != NULL) - GNUNET_DHT_get_stop(test_get->get_handle, NULL, NULL); + GNUNET_DHT_get_stop(test_get->get_handle); if (test_get->dht_handle != NULL) GNUNET_DHT_disconnect(test_get->dht_handle); test_get = test_get->next; @@ -316,7 +318,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc) if (test_get->disconnect_task != GNUNET_SCHEDULER_NO_TASK) GNUNET_SCHEDULER_cancel(sched, test_get->disconnect_task); if (test_get->get_handle != NULL) - GNUNET_DHT_get_stop(test_get->get_handle, NULL, NULL); + GNUNET_DHT_get_stop(test_get->get_handle); if (test_get->dht_handle != NULL) GNUNET_DHT_disconnect(test_get->dht_handle); test_get = test_get->next; @@ -370,7 +372,8 @@ get_stop_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Get from peer %s for key %s failed!\n", test_get->daemon->shortname, GNUNET_h2s(&search_key)); } GNUNET_assert(test_get->get_handle != NULL); - GNUNET_DHT_get_stop(test_get->get_handle, &get_stop_finished, test_get); + GNUNET_DHT_get_stop(test_get->get_handle); + GNUNET_SCHEDULER_add_now (sched, &get_stop_finished, test_get); test_get->get_handle = NULL; test_get->disconnect_task = GNUNET_SCHEDULER_NO_TASK; } -- 2.25.1