-only trigger check config if we actually need it
[oweals/gnunet.git] / src / dht / test_dht_api.c
index 58b3e0b26cdcb6b2766f41664ac008a813d1d62e..99f17699c4d9b3842f071fc5f7382e984548ad1f 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2009, 2015 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009, 2015 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -82,7 +82,7 @@ static struct GNUNET_SCHEDULER_Task * die_task;
 
 
 static void
-end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+end (void *cls)
 {
   GNUNET_SCHEDULER_cancel (die_task);
   die_task = NULL;
@@ -116,11 +116,9 @@ end_badly ()
  * Signature of the main function of a task.
  *
  * @param cls closure
- * @param tc context information (why was this task triggered now)
  */
 static void
-test_get_stop (void *cls,
-               const struct GNUNET_SCHEDULER_TaskContext *tc)
+test_get_stop (void *cls)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Called test_get_stop!\n");
@@ -211,7 +209,7 @@ run (void *cls,
   GNUNET_DHT_put (dht_handle, &hash, 1, GNUNET_DHT_RO_NONE,
                   GNUNET_BLOCK_TYPE_TEST, data_size, data,
                   GNUNET_TIME_relative_to_absolute (TOTAL_TIMEOUT),
-                  TOTAL_TIMEOUT, &test_get, NULL);
+                  &test_get, NULL);
   GNUNET_free (data);
 }