- fix coverity
[oweals/gnunet.git] / src / transport / transport-testing.c
index a557275398b9d52adca7a245f28f315b8755d7ec..4a514ea724cbfe404b15da11bd8524c1824641b7 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2006, 2009, 2015 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2006, 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
@@ -195,11 +195,9 @@ get_hello (void *cb_cls,
  * Offer the current HELLO of P2 to P1.
  *
  * @param cls our `struct GNUNET_TRANSPORT_TESTING_ConnectRequest `
- * @param tc scheduler context
  */
 static void
-offer_hello (void *cls,
-             const struct GNUNET_SCHEDULER_TaskContext *tc);
+offer_hello (void *cls);
 
 
 /**
@@ -207,8 +205,7 @@ offer_hello (void *cls,
  * transport service.
  */
 static void
-hello_offered (void *cls,
-               const struct GNUNET_SCHEDULER_TaskContext *tc)
+hello_offered (void *cls)
 {
   struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cc = cls;
 
@@ -223,20 +220,16 @@ hello_offered (void *cls,
 /**
  * Offer the current HELLO of P2 to P1.
  *
- * @param cls our `struct GNUNET_TRANSPORT_TESTING_ConnectRequest `
- * @param tc scheduler context
+ * @param cls our `struct GNUNET_TRANSPORT_TESTING_ConnectRequest`
  */
 static void
-offer_hello (void *cls,
-             const struct GNUNET_SCHEDULER_TaskContext *tc)
+offer_hello (void *cls)
 {
   struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cc = cls;
   struct PeerContext *p1 = cc->p1;
   struct PeerContext *p2 = cc->p2;
 
   cc->tct = NULL;
-  if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
-    return;
   {
     char *p2_s = GNUNET_strdup (GNUNET_i2s (&p2->id));