aboutsummaryrefslogtreecommitdiff
path: root/src/topology/test_gnunet_daemon_topology.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-29 22:22:23 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-29 22:22:23 +0000
commit9533351f60cd5d4089c8449912d7494ad02462e1 (patch)
tree245f842b8c03e50c39c7ede957df9fdd3d245a1c /src/topology/test_gnunet_daemon_topology.c
parent727e3699b347b4b559377db977c7fc9b9d7fb404 (diff)
downloadgnunet-9533351f60cd5d4089c8449912d7494ad02462e1.tar.gz
gnunet-9533351f60cd5d4089c8449912d7494ad02462e1.zip
-dce
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 {