From 27e4f78f34c79ed18645cb15fc2c5f731c137076 Mon Sep 17 00:00:00 2001 From: t3sserakt Date: Thu, 2 Dec 2021 10:49:23 +0100 Subject: - fixed warning, raised log level for udp backchannel test --- .../test_transport_plugin_cmd_simple_send.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/transport/test_transport_plugin_cmd_simple_send.c') 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 handle_test (void *cls, const struct GNUNET_TRANSPORT_TESTING_TestMessage *message) { - struct GNUNET_TESTING_AsyncContext *ac; + const struct GNUNET_TESTING_AsyncContext *ac; GNUNET_TESTING_get_trait_async_context (&block_receive, &ac); GNUNET_assert (NULL != ac); if (NULL == ac->cont) - GNUNET_TESTING_async_fail (ac); + GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) ac); else - GNUNET_TESTING_async_finish (ac); + GNUNET_TESTING_async_finish ((struct GNUNET_TESTING_AsyncContext *) ac); } @@ -116,15 +116,15 @@ handle_test (void *cls, static void all_peers_started () { - struct GNUNET_TESTING_AsyncContext *ac; + const struct GNUNET_TESTING_AsyncContext *ac; GNUNET_TESTING_get_trait_async_context (&block_send, &ac); GNUNET_assert (NULL != ac); if (NULL == ac->cont) - GNUNET_TESTING_async_fail (ac); + GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) ac); else - GNUNET_TESTING_async_finish (ac); + GNUNET_TESTING_async_finish ((struct GNUNET_TESTING_AsyncContext *) ac); } @@ -167,7 +167,7 @@ static void * notify_connect (struct GNUNET_TESTING_Interpreter *is, const struct GNUNET_PeerIdentity *peer) { - struct ConnectPeersState *cps; + const struct ConnectPeersState *cps; const struct GNUNET_TESTING_Command *cmd; cmd = GNUNET_TESTING_interpreter_lookup_command (is, @@ -188,15 +188,16 @@ notify_connect (struct GNUNET_TESTING_Interpreter *is, static void all_local_tests_prepared () { - struct LocalPreparedState *lfs; + const struct LocalPreparedState *lfs; GNUNET_TESTING_get_trait_local_prepared_state (&local_prepared, &lfs); GNUNET_assert (NULL != &lfs->ac); if (NULL == lfs->ac.cont) - GNUNET_TESTING_async_fail (&lfs->ac); + GNUNET_TESTING_async_fail ((struct GNUNET_TESTING_AsyncContext *) &lfs->ac); else - GNUNET_TESTING_async_finish (&lfs->ac); + GNUNET_TESTING_async_finish ((struct + GNUNET_TESTING_AsyncContext *) &lfs->ac); } -- cgit v1.2.3