aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_cmd_send_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_cmd_send_simple.c')
-rw-r--r--src/transport/transport_api_cmd_send_simple.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/transport/transport_api_cmd_send_simple.c b/src/transport/transport_api_cmd_send_simple.c
index f9e515c0f..1599dfe97 100644
--- a/src/transport/transport_api_cmd_send_simple.c
+++ b/src/transport/transport_api_cmd_send_simple.c
@@ -80,8 +80,7 @@ send_simple_traits (void *cls,
80 * 80 *
81 */ 81 */
82static void 82static void
83send_simple_cleanup (void *cls, 83send_simple_cleanup (void *cls)
84 const struct GNUNET_TESTING_Command *cmd)
85{ 84{
86 struct SendSimpleState *sss = cls; 85 struct SendSimpleState *sss = cls;
87 86
@@ -95,7 +94,6 @@ send_simple_cleanup (void *cls,
95 */ 94 */
96static void 95static void
97send_simple_run (void *cls, 96send_simple_run (void *cls,
98 const struct GNUNET_TESTING_Command *cmd,
99 struct GNUNET_TESTING_Interpreter *is) 97 struct GNUNET_TESTING_Interpreter *is)
100{ 98{
101 struct SendSimpleState *sss = cls; 99 struct SendSimpleState *sss = cls;
@@ -108,7 +106,8 @@ send_simple_run (void *cls,
108 struct GNUNET_HashCode hc; 106 struct GNUNET_HashCode hc;
109 int node_number; 107 int node_number;
110 108
111 peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (sss->start_peer_label); 109 peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (is,
110 sss->start_peer_label);
112 GNUNET_TRANSPORT_get_trait_connected_peers_map (peer1_cmd, 111 GNUNET_TRANSPORT_get_trait_connected_peers_map (peer1_cmd,
113 &connected_peers_map); 112 &connected_peers_map);
114 113
@@ -159,14 +158,15 @@ GNUNET_TRANSPORT_cmd_send_simple (const char *label,
159 sss->n = n; 158 sss->n = n;
160 sss->num = num; 159 sss->num = num;
161 sss->start_peer_label = start_peer_label; 160 sss->start_peer_label = start_peer_label;
162 161 {
163 struct GNUNET_TESTING_Command cmd = { 162 struct GNUNET_TESTING_Command cmd = {
164 .cls = sss, 163 .cls = sss,
165 .label = label, 164 .label = label,
166 .run = &send_simple_run, 165 .run = &send_simple_run,
167 .cleanup = &send_simple_cleanup, 166 .cleanup = &send_simple_cleanup,
168 .traits = &send_simple_traits 167 .traits = &send_simple_traits
169 }; 168 };
170 169
171 return cmd; 170 return cmd;
171 }
172} 172}