fix ready_cb notifications to ensure they exactly happen only when needed
[oweals/gnunet.git] / doc / testbed_test.c
index bdda338b0644bfcac75fd5da5823fcf9a22eae9e..0ef0980af0a5fa89d651338b292eb5a603a30657 100644 (file)
@@ -11,7 +11,7 @@ static struct GNUNET_TESTBED_Operation *dht_op;
 
 static struct GNUNET_DHT_Handle *dht_handle;
 
-static GNUNET_SCHEDULER_TaskIdentifier shutdown_tid;
+static struct GNUNET_SCHEDULER_Task * shutdown_tid;
 
 
 /**
@@ -37,9 +37,9 @@ static int result;
  * Cleans up.
  */
 static void
-shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+shutdown_task (void *cls)
 {
-  shutdown_tid = GNUNET_SCHEDULER_NO_TASK;
+  shutdown_tid = NULL;
   if (NULL != dht_op)
   {
     GNUNET_TESTBED_operation_done (dht_op); /* indirectly calls the dht_da() for closing