aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_netjail_stop_testsystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_netjail_stop_testsystem.c')
-rw-r--r--src/testing/testing_api_cmd_netjail_stop_testsystem.c11
1 files changed, 8 insertions, 3 deletions
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,
100 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 100 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
101 "i: %u\n", 101 "i: %u\n",
102 i); 102 i);
103 GNUNET_HELPER_stop (helper[i - 1], 103 GNUNET_HELPER_stop (
104 GNUNET_YES); 104 (struct GNUNET_HELPER_Handle *) helper[i - 1],
105 GNUNET_YES);
105 } 106 }
106 107
107 for (int i = 1; i <= shs->global_n; i++) 108 for (int i = 1; i <= shs->global_n; i++)
@@ -112,7 +113,11 @@ stop_testing_system_run (void *cls,
112 "i: %u j: %u\n", 113 "i: %u j: %u\n",
113 i, 114 i,
114 j); 115 j);
115 GNUNET_HELPER_stop (helper[(i - 1) * shs->local_m + j + shs->known - 1], 116 GNUNET_HELPER_stop ((struct GNUNET_HELPER_Handle *) helper[(i - 1)
117 * shs->local_m
118 + j
119 + shs->known
120 - 1],
116 GNUNET_YES); 121 GNUNET_YES);
117 } 122 }
118 } 123 }