aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht_test_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/dht_test_lib.c')
-rw-r--r--src/dht/dht_test_lib.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dht/dht_test_lib.c b/src/dht/dht_test_lib.c
index de41b2ecc..9864da949 100644
--- a/src/dht/dht_test_lib.c
+++ b/src/dht/dht_test_lib.c
@@ -49,7 +49,7 @@ struct GNUNET_DHT_TEST_Context
49 * Main function of the test to run once all DHTs are available. 49 * Main function of the test to run once all DHTs are available.
50 */ 50 */
51 GNUNET_DHT_TEST_AppMain app_main; 51 GNUNET_DHT_TEST_AppMain app_main;
52 52
53 /** 53 /**
54 * Closure for 'app_main'. 54 * Closure for 'app_main'.
55 */ 55 */
@@ -73,7 +73,7 @@ struct GNUNET_DHT_TEST_Context
73 * from GNUNET_TESTBED_service_connect() 73 * from GNUNET_TESTBED_service_connect()
74 * @return service handle to return in 'op_result', NULL on error 74 * @return service handle to return in 'op_result', NULL on error
75 */ 75 */
76static void * 76static void *
77dht_connect_adapter (void *cls, 77dht_connect_adapter (void *cls,
78 const struct GNUNET_CONFIGURATION_Handle *cfg) 78 const struct GNUNET_CONFIGURATION_Handle *cfg)
79{ 79{
@@ -88,7 +88,7 @@ dht_connect_adapter (void *cls,
88 * @param cls closure 88 * @param cls closure
89 * @param op_result service handle returned from the connect adapter 89 * @param op_result service handle returned from the connect adapter
90 */ 90 */
91static void 91static void
92dht_disconnect_adapter (void *cls, 92dht_disconnect_adapter (void *cls,
93 void *op_result) 93 void *op_result)
94{ 94{
@@ -107,7 +107,7 @@ dht_disconnect_adapter (void *cls,
107 * @param emsg error message in case the operation has failed; will be NULL if 107 * @param emsg error message in case the operation has failed; will be NULL if
108 * operation has executed successfully. 108 * operation has executed successfully.
109 */ 109 */
110static void 110static void
111dht_connect_cb (void *cls, 111dht_connect_cb (void *cls,
112 struct GNUNET_TESTBED_Operation *op, 112 struct GNUNET_TESTBED_Operation *op,
113 void *ca_result, 113 void *ca_result,
@@ -115,7 +115,7 @@ dht_connect_cb (void *cls,
115{ 115{
116 struct GNUNET_DHT_TEST_Context *ctx = cls; 116 struct GNUNET_DHT_TEST_Context *ctx = cls;
117 unsigned int i; 117 unsigned int i;
118 118
119 if (NULL != emsg) 119 if (NULL != emsg)
120 { 120 {
121 fprintf (stderr, "Failed to connect to DHT service: %s\n", 121 fprintf (stderr, "Failed to connect to DHT service: %s\n",
@@ -134,7 +134,7 @@ dht_connect_cb (void *cls,
134 ctx, 134 ctx,
135 ctx->num_peers, 135 ctx->num_peers,
136 ctx->peers, 136 ctx->peers,
137 ctx->dhts); 137 ctx->dhts);
138} 138}
139 139
140 140
@@ -192,7 +192,7 @@ dht_test_run (void *cls,
192 * @param tmain main function to run once the testbed is ready 192 * @param tmain main function to run once the testbed is ready
193 * @param tmain_cls closure for 'tmain' 193 * @param tmain_cls closure for 'tmain'
194 */ 194 */
195void 195void
196GNUNET_DHT_TEST_run (const char *testname, 196GNUNET_DHT_TEST_run (const char *testname,
197 const char *cfgname, 197 const char *cfgname,
198 unsigned int num_peers, 198 unsigned int num_peers,
@@ -200,7 +200,7 @@ GNUNET_DHT_TEST_run (const char *testname,
200 void *tmain_cls) 200 void *tmain_cls)
201{ 201{
202 struct GNUNET_DHT_TEST_Context *ctx; 202 struct GNUNET_DHT_TEST_Context *ctx;
203 203
204 ctx = GNUNET_malloc (sizeof (struct GNUNET_DHT_TEST_Context)); 204 ctx = GNUNET_malloc (sizeof (struct GNUNET_DHT_TEST_Context));
205 ctx->num_peers = num_peers; 205 ctx->num_peers = num_peers;
206 ctx->ops = GNUNET_malloc (num_peers * sizeof (struct GNUNET_TESTBED_Operation *)); 206 ctx->ops = GNUNET_malloc (num_peers * sizeof (struct GNUNET_TESTBED_Operation *));