diff options
Diffstat (limited to 'src/transport/test_transport_plugin_cmd_udp_backchannel.c')
-rw-r--r-- | src/transport/test_transport_plugin_cmd_udp_backchannel.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/transport/test_transport_plugin_cmd_udp_backchannel.c b/src/transport/test_transport_plugin_cmd_udp_backchannel.c index b594049c9..537832e61 100644 --- a/src/transport/test_transport_plugin_cmd_udp_backchannel.c +++ b/src/transport/test_transport_plugin_cmd_udp_backchannel.c | |||
@@ -113,15 +113,15 @@ handle_test (void *cls, | |||
113 | static void | 113 | static void |
114 | all_peers_started () | 114 | all_peers_started () |
115 | { | 115 | { |
116 | struct GNUNET_TESTING_AsyncContext *ac; | 116 | const struct GNUNET_TESTING_AsyncContext *ac; |
117 | 117 | ||
118 | GNUNET_TESTING_get_trait_async_context (&block_send, | 118 | GNUNET_TESTING_get_trait_async_context (&block_send, |
119 | &ac); | 119 | &ac); |
120 | GNUNET_assert (NULL != ac); | 120 | GNUNET_assert (NULL != ac); |
121 | if ((NULL == ac->cont)) | 121 | if ((NULL == ac->cont)) |
122 | GNUNET_TESTING_async_fail (ac); | 122 | GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) ac); |
123 | else | 123 | else |
124 | GNUNET_TESTING_async_finish (ac); | 124 | GNUNET_TESTING_async_finish ((struct GNUNET_TESTING_AsyncContext *) ac); |
125 | } | 125 | } |
126 | 126 | ||
127 | 127 | ||
@@ -163,7 +163,7 @@ static void * | |||
163 | notify_connect (struct GNUNET_TESTING_Interpreter *is, | 163 | notify_connect (struct GNUNET_TESTING_Interpreter *is, |
164 | const struct GNUNET_PeerIdentity *peer) | 164 | const struct GNUNET_PeerIdentity *peer) |
165 | { | 165 | { |
166 | struct ConnectPeersState *cps; | 166 | const struct ConnectPeersState *cps; |
167 | 167 | ||
168 | GNUNET_TRANSPORT_get_trait_connect_peer_state (&connect_peers, | 168 | GNUNET_TRANSPORT_get_trait_connect_peer_state (&connect_peers, |
169 | &cps); | 169 | &cps); |
@@ -180,15 +180,16 @@ notify_connect (struct GNUNET_TESTING_Interpreter *is, | |||
180 | static void | 180 | static void |
181 | all_local_tests_prepared () | 181 | all_local_tests_prepared () |
182 | { | 182 | { |
183 | struct LocalPreparedState *lfs; | 183 | const struct LocalPreparedState *lfs; |
184 | 184 | ||
185 | GNUNET_TESTING_get_trait_local_prepared_state (&local_prepared, | 185 | GNUNET_TESTING_get_trait_local_prepared_state (&local_prepared, |
186 | &lfs); | 186 | &lfs); |
187 | GNUNET_assert (NULL != &lfs->ac); | 187 | GNUNET_assert (NULL != &lfs->ac); |
188 | if (NULL == lfs->ac.cont) | 188 | if (NULL == lfs->ac.cont) |
189 | GNUNET_TESTING_async_fail (&lfs->ac); | 189 | GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) &lfs->ac); |
190 | else | 190 | else |
191 | GNUNET_TESTING_async_finish (&lfs->ac); | 191 | GNUNET_TESTING_async_finish ((struct |
192 | GNUNET_TESTING_AsyncContext *) &lfs->ac); | ||
192 | } | 193 | } |
193 | 194 | ||
194 | /** | 195 | /** |