From ca0181dab5d356b6d6373fc0958e6f9ba4da7401 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 23 Oct 2023 22:03:36 +0200 Subject: BUILD: Fix more warnings. --- src/service/testing/testing_api_cmd_start_peer.c | 1 - src/service/testing/testing_api_loop.c | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/service/testing/testing_api_cmd_start_peer.c b/src/service/testing/testing_api_cmd_start_peer.c index e2a2c0fbf..cd4536131 100644 --- a/src/service/testing/testing_api_cmd_start_peer.c +++ b/src/service/testing/testing_api_cmd_start_peer.c @@ -279,7 +279,6 @@ GNUNET_TESTING_cmd_start_peer (const char *label, struct GNUNET_TESTING_StartPeerState *sps; struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map = GNUNET_CONTAINER_multishortmap_create (1,GNUNET_NO); - unsigned int i; sps = GNUNET_new (struct GNUNET_TESTING_StartPeerState); sps->no = no; diff --git a/src/service/testing/testing_api_loop.c b/src/service/testing/testing_api_loop.c index db0a00c22..11cd02ec0 100644 --- a/src/service/testing/testing_api_loop.c +++ b/src/service/testing/testing_api_loop.c @@ -738,7 +738,7 @@ GNUNET_TESTING_add_netjail_helper (struct GNUNET_TESTING_Interpreter *is, * @param global_node_number The netjail node to inform. * @param header The message to send. */ -void +static void send_message_to_netjail (struct GNUNET_TESTING_Interpreter *is, unsigned int global_node_number, struct GNUNET_MessageHeader *header) @@ -749,6 +749,10 @@ send_message_to_netjail (struct GNUNET_TESTING_Interpreter *is, "send message of type %u to locals\n", ntohs (header->type)); helper = is->helper[global_node_number - 1]; + /** + FIXME: This should probably be put into a linked list + inside is and cleaned up at some point. + */ struct GNUNET_HELPER_SendHandle *sh = GNUNET_HELPER_send ( (struct GNUNET_HELPER_Handle *) helper, header, -- cgit v1.2.3