aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_plugin_cmd_simple_send.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-12-02 10:49:23 +0100
committert3sserakt <t3ss@posteo.de>2021-12-02 10:49:23 +0100
commit27e4f78f34c79ed18645cb15fc2c5f731c137076 (patch)
treedf9121b30b3c6efb4a5ba4ca2676ae55613078ca /src/transport/test_transport_plugin_cmd_simple_send.c
parent08226446145611d21bef57fdc77e4693309f3cc4 (diff)
downloadgnunet-27e4f78f34c79ed18645cb15fc2c5f731c137076.tar.gz
gnunet-27e4f78f34c79ed18645cb15fc2c5f731c137076.zip
- fixed warning, raised log level for udp backchannel test0.15.x
Diffstat (limited to 'src/transport/test_transport_plugin_cmd_simple_send.c')
-rw-r--r--src/transport/test_transport_plugin_cmd_simple_send.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/transport/test_transport_plugin_cmd_simple_send.c b/src/transport/test_transport_plugin_cmd_simple_send.c
index 6a6861d77..154c0abca 100644
--- a/src/transport/test_transport_plugin_cmd_simple_send.c
+++ b/src/transport/test_transport_plugin_cmd_simple_send.c
@@ -97,15 +97,15 @@ static void
97handle_test (void *cls, 97handle_test (void *cls,
98 const struct GNUNET_TRANSPORT_TESTING_TestMessage *message) 98 const struct GNUNET_TRANSPORT_TESTING_TestMessage *message)
99{ 99{
100 struct GNUNET_TESTING_AsyncContext *ac; 100 const struct GNUNET_TESTING_AsyncContext *ac;
101 101
102 GNUNET_TESTING_get_trait_async_context (&block_receive, 102 GNUNET_TESTING_get_trait_async_context (&block_receive,
103 &ac); 103 &ac);
104 GNUNET_assert (NULL != ac); 104 GNUNET_assert (NULL != ac);
105 if (NULL == ac->cont) 105 if (NULL == ac->cont)
106 GNUNET_TESTING_async_fail (ac); 106 GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) ac);
107 else 107 else
108 GNUNET_TESTING_async_finish (ac); 108 GNUNET_TESTING_async_finish ((struct GNUNET_TESTING_AsyncContext *) ac);
109} 109}
110 110
111 111
@@ -116,15 +116,15 @@ handle_test (void *cls,
116static void 116static void
117all_peers_started () 117all_peers_started ()
118{ 118{
119 struct GNUNET_TESTING_AsyncContext *ac; 119 const struct GNUNET_TESTING_AsyncContext *ac;
120 120
121 GNUNET_TESTING_get_trait_async_context (&block_send, 121 GNUNET_TESTING_get_trait_async_context (&block_send,
122 &ac); 122 &ac);
123 GNUNET_assert (NULL != ac); 123 GNUNET_assert (NULL != ac);
124 if (NULL == ac->cont) 124 if (NULL == ac->cont)
125 GNUNET_TESTING_async_fail (ac); 125 GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) ac);
126 else 126 else
127 GNUNET_TESTING_async_finish (ac); 127 GNUNET_TESTING_async_finish ((struct GNUNET_TESTING_AsyncContext *) ac);
128} 128}
129 129
130 130
@@ -167,7 +167,7 @@ static void *
167notify_connect (struct GNUNET_TESTING_Interpreter *is, 167notify_connect (struct GNUNET_TESTING_Interpreter *is,
168 const struct GNUNET_PeerIdentity *peer) 168 const struct GNUNET_PeerIdentity *peer)
169{ 169{
170 struct ConnectPeersState *cps; 170 const struct ConnectPeersState *cps;
171 const struct GNUNET_TESTING_Command *cmd; 171 const struct GNUNET_TESTING_Command *cmd;
172 172
173 cmd = GNUNET_TESTING_interpreter_lookup_command (is, 173 cmd = GNUNET_TESTING_interpreter_lookup_command (is,
@@ -188,15 +188,16 @@ notify_connect (struct GNUNET_TESTING_Interpreter *is,
188static void 188static void
189all_local_tests_prepared () 189all_local_tests_prepared ()
190{ 190{
191 struct LocalPreparedState *lfs; 191 const struct LocalPreparedState *lfs;
192 192
193 GNUNET_TESTING_get_trait_local_prepared_state (&local_prepared, 193 GNUNET_TESTING_get_trait_local_prepared_state (&local_prepared,
194 &lfs); 194 &lfs);
195 GNUNET_assert (NULL != &lfs->ac); 195 GNUNET_assert (NULL != &lfs->ac);
196 if (NULL == lfs->ac.cont) 196 if (NULL == lfs->ac.cont)
197 GNUNET_TESTING_async_fail (&lfs->ac); 197 GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) &lfs->ac);
198 else 198 else
199 GNUNET_TESTING_async_finish (&lfs->ac); 199 GNUNET_TESTING_async_finish ((struct
200 GNUNET_TESTING_AsyncContext *) &lfs->ac);
200} 201}
201 202
202 203