aboutsummaryrefslogtreecommitdiff
path: root/src/topology/test_gnunet_daemon_topology.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/topology/test_gnunet_daemon_topology.c')
-rw-r--r--src/topology/test_gnunet_daemon_topology.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/topology/test_gnunet_daemon_topology.c b/src/topology/test_gnunet_daemon_topology.c
index e94123fe8..be2875fe5 100644
--- a/src/topology/test_gnunet_daemon_topology.c
+++ b/src/topology/test_gnunet_daemon_topology.c
@@ -37,16 +37,12 @@ static int ok;
37 37
38static unsigned int connect_left; 38static unsigned int connect_left;
39 39
40static struct GNUNET_TESTBED_Peer *daemons[NUM_PEERS];
41
42 40
43static void 41static void
44notify_connect_complete (void *cls, 42notify_connect_complete (void *cls,
45 struct GNUNET_TESTBED_Operation *op, 43 struct GNUNET_TESTBED_Operation *op,
46 const char *emsg) 44 const char *emsg)
47{ 45{
48 unsigned int i;
49
50 if (NULL != emsg) 46 if (NULL != emsg)
51 { 47 {
52 FPRINTF (stderr, "Failed to connect two peers: %s\n", emsg); 48 FPRINTF (stderr, "Failed to connect two peers: %s\n", emsg);
@@ -54,6 +50,7 @@ notify_connect_complete (void *cls,
54 ok = 1; 50 ok = 1;
55 return; 51 return;
56 } 52 }
53 GNUNET_TESTBED_operation_done (op);
57 connect_left--; 54 connect_left--;
58 if (0 == connect_left) 55 if (0 == connect_left)
59 { 56 {