diff options
Diffstat (limited to 'src/transport/transport_api_cmd_stop_peer.c')
-rw-r--r-- | src/transport/transport_api_cmd_stop_peer.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/src/transport/transport_api_cmd_stop_peer.c b/src/transport/transport_api_cmd_stop_peer.c index 4d7228378..dcb982a65 100644 --- a/src/transport/transport_api_cmd_stop_peer.c +++ b/src/transport/transport_api_cmd_stop_peer.c | |||
@@ -54,14 +54,14 @@ struct StopPeerState | |||
54 | */ | 54 | */ |
55 | static void | 55 | static void |
56 | stop_peer_run (void *cls, | 56 | stop_peer_run (void *cls, |
57 | const struct GNUNET_TESTING_Command *cmd, | ||
58 | struct GNUNET_TESTING_Interpreter *is) | 57 | struct GNUNET_TESTING_Interpreter *is) |
59 | { | 58 | { |
60 | struct StopPeerState *stop_ps = cls; | 59 | struct StopPeerState *stop_ps = cls; |
61 | struct StartPeerState *sps; | 60 | struct StartPeerState *sps; |
62 | const struct GNUNET_TESTING_Command *start_cmd; | 61 | const struct GNUNET_TESTING_Command *start_cmd; |
63 | 62 | ||
64 | start_cmd = GNUNET_TESTING_interpreter_lookup_command (stop_ps->start_label); | 63 | start_cmd = GNUNET_TESTING_interpreter_lookup_command (is, |
64 | stop_ps->start_label); | ||
65 | GNUNET_TRANSPORT_get_trait_state (start_cmd, | 65 | GNUNET_TRANSPORT_get_trait_state (start_cmd, |
66 | &sps); | 66 | &sps); |
67 | 67 | ||
@@ -112,8 +112,7 @@ stop_peer_run (void *cls, | |||
112 | * | 112 | * |
113 | */ | 113 | */ |
114 | static void | 114 | static void |
115 | stop_peer_cleanup (void *cls, | 115 | stop_peer_cleanup (void *cls) |
116 | const struct GNUNET_TESTING_Command *cmd) | ||
117 | { | 116 | { |
118 | struct StopPeerState *sps = cls; | 117 | struct StopPeerState *sps = cls; |
119 | 118 | ||
@@ -150,14 +149,14 @@ GNUNET_TRANSPORT_cmd_stop_peer (const char *label, | |||
150 | 149 | ||
151 | sps = GNUNET_new (struct StopPeerState); | 150 | sps = GNUNET_new (struct StopPeerState); |
152 | sps->start_label = start_label; | 151 | sps->start_label = start_label; |
153 | 152 | { | |
154 | struct GNUNET_TESTING_Command cmd = { | 153 | struct GNUNET_TESTING_Command cmd = { |
155 | .cls = sps, | 154 | .cls = sps, |
156 | .label = label, | 155 | .label = label, |
157 | .run = &stop_peer_run, | 156 | .run = &stop_peer_run, |
158 | .cleanup = &stop_peer_cleanup, | 157 | .cleanup = &stop_peer_cleanup, |
159 | .traits = &stop_peer_traits | 158 | .traits = &stop_peer_traits |
160 | }; | 159 | }; |
161 | 160 | return cmd; | |
162 | return cmd; | 161 | } |
163 | } | 162 | } |