- fix coverity
[oweals/gnunet.git] / src / transport / test_transport_api_manipulation_cfg.c
index ce968a4975d41b769f9739d18325349420f0f086..fe3d31f7bb0a50043ccac7102935e6ee19fef151 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2009, 2010 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009, 2010 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
@@ -109,7 +109,7 @@ end ()
 
 
 static void
-end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+end_badly (void *cls)
 {
   die_task = NULL;
 
@@ -204,13 +204,9 @@ notify_request_ready (void *cls, size_t size, void *buf)
 
 
 static void
-sendtask_request_task (void *cls,
-                       const struct GNUNET_SCHEDULER_TaskContext *tc)
+sendtask_request_task (void *cls)
 {
   send_task = NULL;
-
-  if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
-    return;
   char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p2->id));
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -269,13 +265,9 @@ notify_response_ready (void *cls, size_t size, void *buf)
 
 
 static void
-sendtask_response_task (void *cls,
-                        const struct GNUNET_SCHEDULER_TaskContext *tc)
+sendtask_response_task (void *cls)
 {
   send_task = NULL;
-
-  if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
-    return;
   {
     char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));