make third test compile
authorChristian Grothoff <christian@grothoff.org>
Sat, 2 Oct 2010 14:15:43 +0000 (14:15 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 2 Oct 2010 14:15:43 +0000 (14:15 +0000)
src/dht/test_dht_multipeer.c

index 73382494b6249f37bb8c91bc2be70c1fd501f4f2..288cf76b65fb5a307ad951dc81f34dd6c95fe9dd 100644 (file)
@@ -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;
 }