aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-10-23 22:03:36 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2023-10-23 22:03:36 +0200
commitca0181dab5d356b6d6373fc0958e6f9ba4da7401 (patch)
tree926c5d765be4f0b563365da3db317b3fb900e510
parent86be68cc09311db4270887dc58c0fabc62c51bfa (diff)
downloadgnunet-ca0181dab5d356b6d6373fc0958e6f9ba4da7401.tar.gz
gnunet-ca0181dab5d356b6d6373fc0958e6f9ba4da7401.zip
BUILD: Fix more warnings.
-rw-r--r--src/service/testing/testing_api_cmd_start_peer.c1
-rw-r--r--src/service/testing/testing_api_loop.c6
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,
279 struct GNUNET_TESTING_StartPeerState *sps; 279 struct GNUNET_TESTING_StartPeerState *sps;
280 struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map = 280 struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map =
281 GNUNET_CONTAINER_multishortmap_create (1,GNUNET_NO); 281 GNUNET_CONTAINER_multishortmap_create (1,GNUNET_NO);
282 unsigned int i;
283 282
284 sps = GNUNET_new (struct GNUNET_TESTING_StartPeerState); 283 sps = GNUNET_new (struct GNUNET_TESTING_StartPeerState);
285 sps->no = no; 284 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,
738 * @param global_node_number The netjail node to inform. 738 * @param global_node_number The netjail node to inform.
739 * @param header The message to send. 739 * @param header The message to send.
740 */ 740 */
741void 741static void
742send_message_to_netjail (struct GNUNET_TESTING_Interpreter *is, 742send_message_to_netjail (struct GNUNET_TESTING_Interpreter *is,
743 unsigned int global_node_number, 743 unsigned int global_node_number,
744 struct GNUNET_MessageHeader *header) 744 struct GNUNET_MessageHeader *header)
@@ -749,6 +749,10 @@ send_message_to_netjail (struct GNUNET_TESTING_Interpreter *is,
749 "send message of type %u to locals\n", 749 "send message of type %u to locals\n",
750 ntohs (header->type)); 750 ntohs (header->type));
751 helper = is->helper[global_node_number - 1]; 751 helper = is->helper[global_node_number - 1];
752 /**
753 FIXME: This should probably be put into a linked list
754 inside is and cleaned up at some point.
755 */
752 struct GNUNET_HELPER_SendHandle *sh = GNUNET_HELPER_send ( 756 struct GNUNET_HELPER_SendHandle *sh = GNUNET_HELPER_send (
753 (struct GNUNET_HELPER_Handle *) helper, 757 (struct GNUNET_HELPER_Handle *) helper,
754 header, 758 header,