diff options
Diffstat (limited to 'src/transport/transport_api_cmd_send_simple_v2.c')
-rw-r--r-- | src/transport/transport_api_cmd_send_simple_v2.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/transport/transport_api_cmd_send_simple_v2.c b/src/transport/transport_api_cmd_send_simple_v2.c index d43c0b425..8d65eb684 100644 --- a/src/transport/transport_api_cmd_send_simple_v2.c +++ b/src/transport/transport_api_cmd_send_simple_v2.c | |||
@@ -68,8 +68,7 @@ send_simple_traits (void *cls, | |||
68 | * | 68 | * |
69 | */ | 69 | */ |
70 | static void | 70 | static void |
71 | send_simple_cleanup (void *cls, | 71 | send_simple_cleanup (void *cls) |
72 | const struct GNUNET_TESTING_Command *cmd) | ||
73 | { | 72 | { |
74 | struct SendSimpleState *sss = cls; | 73 | struct SendSimpleState *sss = cls; |
75 | 74 | ||
@@ -83,7 +82,6 @@ send_simple_cleanup (void *cls, | |||
83 | */ | 82 | */ |
84 | static void | 83 | static void |
85 | send_simple_run (void *cls, | 84 | send_simple_run (void *cls, |
86 | const struct GNUNET_TESTING_Command *cmd, | ||
87 | struct GNUNET_TESTING_Interpreter *is) | 85 | struct GNUNET_TESTING_Interpreter *is) |
88 | { | 86 | { |
89 | struct SendSimpleState *sss = cls; | 87 | struct SendSimpleState *sss = cls; |
@@ -96,7 +94,8 @@ send_simple_run (void *cls, | |||
96 | struct GNUNET_HashCode hc; | 94 | struct GNUNET_HashCode hc; |
97 | int node_number; | 95 | int node_number; |
98 | 96 | ||
99 | peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (sss->start_peer_label); | 97 | peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (is, |
98 | sss->start_peer_label); | ||
100 | GNUNET_TRANSPORT_get_trait_connected_peers_map (peer1_cmd, | 99 | GNUNET_TRANSPORT_get_trait_connected_peers_map (peer1_cmd, |
101 | &connected_peers_map); | 100 | &connected_peers_map); |
102 | 101 | ||
@@ -143,14 +142,15 @@ GNUNET_TRANSPORT_cmd_send_simple_v2 (const char *label, | |||
143 | sss = GNUNET_new (struct SendSimpleState); | 142 | sss = GNUNET_new (struct SendSimpleState); |
144 | sss->num = num; | 143 | sss->num = num; |
145 | sss->start_peer_label = start_peer_label; | 144 | sss->start_peer_label = start_peer_label; |
146 | 145 | { | |
147 | struct GNUNET_TESTING_Command cmd = { | 146 | struct GNUNET_TESTING_Command cmd = { |
148 | .cls = sss, | 147 | .cls = sss, |
149 | .label = label, | 148 | .label = label, |
150 | .run = &send_simple_run, | 149 | .run = &send_simple_run, |
151 | .cleanup = &send_simple_cleanup, | 150 | .cleanup = &send_simple_cleanup, |
152 | .traits = &send_simple_traits | 151 | .traits = &send_simple_traits |
153 | }; | 152 | }; |
154 | 153 | ||
155 | return cmd; | 154 | return cmd; |
155 | } | ||
156 | } | 156 | } |