- use proper signedness
[oweals/gnunet.git] / src / topology / test_gnunet_daemon_topology.c
index ae35da3813e8d940d7ca27f42aa2de69738ab6aa..c880dad9e63cfafc683f48e98e3beda4cd7c8dc3 100644 (file)
@@ -39,10 +39,11 @@ static unsigned int connect_left;
 
 
 static void
-notify_connect_complete (void *cls, 
+notify_connect_complete (void *cls,
                         struct GNUNET_TESTBED_Operation *op,
                         const char *emsg)
 {
+  GNUNET_TESTBED_operation_done (op);
   if (NULL != emsg)
   {
     FPRINTF (stderr, "Failed to connect two peers: %s\n", emsg);
@@ -50,7 +51,6 @@ notify_connect_complete (void *cls,
     ok = 1;
     return;
   }
-  GNUNET_TESTBED_operation_done (op);
   connect_left--;
   if (0 == connect_left)
   {
@@ -62,9 +62,12 @@ notify_connect_complete (void *cls,
 
 
 static void
-do_connect (void *cls, 
+do_connect (void *cls,
+            struct GNUNET_TESTBED_RunHandle *h,
            unsigned int num_peers,
-           struct GNUNET_TESTBED_Peer **peers)
+           struct GNUNET_TESTBED_Peer **peers,
+            unsigned int links_succeeded,
+            unsigned int links_failed)
 {
   unsigned int i;