aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_cmd_connecting_peers_v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_cmd_connecting_peers_v2.c')
-rw-r--r--src/transport/transport_api_cmd_connecting_peers_v2.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/transport/transport_api_cmd_connecting_peers_v2.c b/src/transport/transport_api_cmd_connecting_peers_v2.c
index 8ef556946..8d0f74916 100644
--- a/src/transport/transport_api_cmd_connecting_peers_v2.c
+++ b/src/transport/transport_api_cmd_connecting_peers_v2.c
@@ -44,6 +44,11 @@
44 */ 44 */
45struct ConnectPeersState 45struct ConnectPeersState
46{ 46{
47 /**
48 * Context for our asynchronous completion.
49 */
50 struct GNUNET_TESTING_AsyncContext ac;
51
47 // Label of the cmd which started the test system. 52 // Label of the cmd which started the test system.
48 const char *create_label; 53 const char *create_label;
49 54
@@ -185,20 +190,6 @@ connect_peers_finish (void *cls,
185 190
186 191
187/** 192/**
188 * Trait function of this cmd does nothing.
189 *
190 */
191static int
192connect_peers_traits (void *cls,
193 const void **ret,
194 const char *trait,
195 unsigned int index)
196{
197 return GNUNET_OK;
198}
199
200
201/**
202 * The cleanup function of this cmd frees resources the cmd allocated. 193 * The cleanup function of this cmd frees resources the cmd allocated.
203 * 194 *
204 */ 195 */
@@ -237,9 +228,8 @@ GNUNET_TRANSPORT_cmd_connect_peers_v2 (const char *label,
237 .cls = cps, 228 .cls = cps,
238 .label = label, 229 .label = label,
239 .run = &connect_peers_run, 230 .run = &connect_peers_run,
240 .finish = &connect_peers_finish, 231 .ac = &cps->ac,
241 .cleanup = &connect_peers_cleanup, 232 .cleanup = &connect_peers_cleanup
242 .traits = &connect_peers_traits
243 }; 233 };
244 234
245 return cmd; 235 return cmd;