- fix coverity
[oweals/gnunet.git] / src / transport / test_transport_api_restart_2peers.c
index 8d30ba15da5fcab0dd41021b6d748e26471a31cd..18cc87c788580796ecc2cc8d3a269d803183b4a5 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2009, 2010, 2015 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009, 2010, 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
@@ -105,8 +105,7 @@ end ()
 
 
 static void
-end_badly (void *cls,
-           const struct GNUNET_SCHEDULER_TaskContext *tc)
+end_badly (void *cls)
 {
   die_task = NULL;
 
@@ -265,14 +264,9 @@ notify_ready (void *cls,
 
 
 static void
-sendtask (void *cls,
-          const struct GNUNET_SCHEDULER_TaskContext *tc)
+sendtask (void *cls)
 {
   send_task = NULL;
-
-  if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
-    return;
-
   {
     char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));