summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_netjail_start_testsystem.c5
-rw-r--r--src/testing/testing_api_cmd_netjail_stop_testsystem.c11
-rw-r--r--src/testing/testing_api_loop.c4
3 files changed, 12 insertions, 8 deletions
diff --git a/src/testing/testing_api_cmd_netjail_start_testsystem.c b/src/testing/testing_api_cmd_netjail_start_testsystem.c
index d24ad3d28..04d7eef44 100644
--- a/src/testing/testing_api_cmd_netjail_start_testsystem.c
+++ b/src/testing/testing_api_cmd_netjail_start_testsystem.c
@@ -222,7 +222,7 @@ netjail_exec_traits (void *cls,
struct GNUNET_TESTING_Trait traits[] = {
- GNUNET_TESTING_make_trait_helper_handles ((const void **) helper),
+ GNUNET_TESTING_make_trait_helper_handles (helper),
GNUNET_TESTING_trait_end ()
};
@@ -262,7 +262,6 @@ send_message_to_locals (
struct GNUNET_MessageHeader *header
)
{
- // unsigned int total_number = ns->local_m * ns->global_n + ns->known;
const struct GNUNET_HELPER_Handle *helper;
struct TestingSystemCount *tbc;
@@ -282,7 +281,7 @@ send_message_to_locals (
struct GNUNET_HELPER_SendHandle *sh = GNUNET_HELPER_send (
- helper,
+ (struct GNUNET_HELPER_Handle *) helper,
header,
GNUNET_NO,
&clear_msg,
diff --git a/src/testing/testing_api_cmd_netjail_stop_testsystem.c b/src/testing/testing_api_cmd_netjail_stop_testsystem.c
index caf83ab0e..2e42056dc 100644
--- a/src/testing/testing_api_cmd_netjail_stop_testsystem.c
+++ b/src/testing/testing_api_cmd_netjail_stop_testsystem.c
@@ -100,8 +100,9 @@ stop_testing_system_run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"i: %u\n",
i);
- GNUNET_HELPER_stop (helper[i - 1],
- GNUNET_YES);
+ GNUNET_HELPER_stop (
+ (struct GNUNET_HELPER_Handle *) helper[i - 1],
+ GNUNET_YES);
}
for (int i = 1; i <= shs->global_n; i++)
@@ -112,7 +113,11 @@ stop_testing_system_run (void *cls,
"i: %u j: %u\n",
i,
j);
- GNUNET_HELPER_stop (helper[(i - 1) * shs->local_m + j + shs->known - 1],
+ GNUNET_HELPER_stop ((struct GNUNET_HELPER_Handle *) helper[(i - 1)
+ * shs->local_m
+ + j
+ + shs->known
+ - 1],
GNUNET_YES);
}
}
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index 290311c59..36e9da220 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -123,9 +123,9 @@ get_command (struct GNUNET_TESTING_Interpreter *is,
if (GNUNET_TESTING_cmd_is_batch_ (cmd))
{
#define BATCH_INDEX 1
- struct GNUNET_TESTING_Command *batch;
+ const struct GNUNET_TESTING_Command *batch;
struct GNUNET_TESTING_Command *current;
- struct GNUNET_TESTING_Command *icmd;
+ const struct GNUNET_TESTING_Command *icmd;
const struct GNUNET_TESTING_Command *match;
current = GNUNET_TESTING_cmd_batch_get_current_ (cmd);