aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arm/arm_api.c4
-rw-r--r--src/arm/gnunet-arm.c2
-rw-r--r--src/arm/test_arm_api.c2
-rw-r--r--src/arm/test_exponential_backoff.c2
-rw-r--r--src/arm/test_gnunet_service_arm.c2
-rw-r--r--src/include/gnunet_arm_service.h4
-rw-r--r--src/regex/gnunet-regex-profiler.c2
7 files changed, 9 insertions, 9 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index d434ff3af..18b4d220c 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -451,7 +451,7 @@ GNUNET_ARM_connect (struct GNUNET_ARM_Handle *h,
451 * @param h the handle that was being used 451 * @param h the handle that was being used
452 */ 452 */
453void 453void
454GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *handle) 454GNUNET_ARM_disconnect_and_free (struct GNUNET_ARM_Handle *handle)
455{ 455{
456 LOG (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from ARM service\n"); 456 LOG (GNUNET_ERROR_TYPE_DEBUG, "Disconnecting from ARM service\n");
457 if (NULL != handle->cth) 457 if (NULL != handle->cth)
@@ -783,7 +783,7 @@ GNUNET_ARM_request_service_start (struct GNUNET_ARM_Handle *h,
783 * Stopping arm itself will not invalidate its handle, and 783 * Stopping arm itself will not invalidate its handle, and
784 * ARM API will try to restore connection to the ARM service, 784 * ARM API will try to restore connection to the ARM service,
785 * even if ARM connection was lost because you asked for ARM to be stopped. 785 * even if ARM connection was lost because you asked for ARM to be stopped.
786 * Call GNUNET_ARM_disconnect () to free the handle and prevent 786 * Call GNUNET_ARM_disconnect_and_free () to free the handle and prevent
787 * further connection attempts. 787 * further connection attempts.
788 * 788 *
789 * @param h handle to ARM 789 * @param h handle to ARM
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c
index f1a4cc4bb..095d60e36 100644
--- a/src/arm/gnunet-arm.c
+++ b/src/arm/gnunet-arm.c
@@ -178,7 +178,7 @@ delete_files ()
178static void 178static void
179shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 179shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
180{ 180{
181 GNUNET_ARM_disconnect (h); 181 GNUNET_ARM_disconnect_and_free (h);
182 GNUNET_ARM_monitor_disconnect (m); 182 GNUNET_ARM_monitor_disconnect (m);
183 h = NULL; 183 h = NULL;
184 m = NULL; 184 m = NULL;
diff --git a/src/arm/test_arm_api.c b/src/arm/test_arm_api.c
index 5cb7cdafd..865f3dfa0 100644
--- a/src/arm/test_arm_api.c
+++ b/src/arm/test_arm_api.c
@@ -114,7 +114,7 @@ resolver_start_cb (void *cls, struct GNUNET_ARM_Handle *h, enum GNUNET_ARM_Reque
114static void 114static void
115trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 115trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
116{ 116{
117 GNUNET_ARM_disconnect ((struct GNUNET_ARM_Handle *) cls); 117 GNUNET_ARM_disconnect_and_free ((struct GNUNET_ARM_Handle *) cls);
118} 118}
119 119
120 120
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c
index 8a0dba117..5613794c3 100644
--- a/src/arm/test_exponential_backoff.c
+++ b/src/arm/test_exponential_backoff.c
@@ -279,7 +279,7 @@ kill_task (void *cbData, const struct GNUNET_SCHEDULER_TaskContext *tc)
279static void 279static void
280trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 280trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
281{ 281{
282 GNUNET_ARM_disconnect (arm); 282 GNUNET_ARM_disconnect_and_free (arm);
283 GNUNET_ARM_monitor_disconnect (mon); 283 GNUNET_ARM_monitor_disconnect (mon);
284} 284}
285 285
diff --git a/src/arm/test_gnunet_service_arm.c b/src/arm/test_gnunet_service_arm.c
index a641f10c5..50f01e932 100644
--- a/src/arm/test_gnunet_service_arm.c
+++ b/src/arm/test_gnunet_service_arm.c
@@ -49,7 +49,7 @@ static struct GNUNET_ARM_Handle *arm;
49static void 49static void
50trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 50trigger_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
51{ 51{
52 GNUNET_ARM_disconnect (arm); 52 GNUNET_ARM_disconnect_and_free (arm);
53 arm = NULL; 53 arm = NULL;
54} 54}
55 55
diff --git a/src/include/gnunet_arm_service.h b/src/include/gnunet_arm_service.h
index be46831a4..4d0f083f7 100644
--- a/src/include/gnunet_arm_service.h
+++ b/src/include/gnunet_arm_service.h
@@ -249,7 +249,7 @@ GNUNET_ARM_connect (struct GNUNET_ARM_Handle *h,
249 * @param h the handle that was being used 249 * @param h the handle that was being used
250 */ 250 */
251void 251void
252GNUNET_ARM_disconnect (struct GNUNET_ARM_Handle *h); 252GNUNET_ARM_disconnect_and_free (struct GNUNET_ARM_Handle *h);
253 253
254 254
255/** 255/**
@@ -271,7 +271,7 @@ GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h,
271 * Stopping arm itself will not invalidate its handle, and 271 * Stopping arm itself will not invalidate its handle, and
272 * ARM API will try to restore connection to the ARM service, 272 * ARM API will try to restore connection to the ARM service,
273 * even if ARM connection was lost because you asked for ARM to be stopped. 273 * even if ARM connection was lost because you asked for ARM to be stopped.
274 * Call GNUNET_ARM_disconnect () to free the handle and prevent 274 * Call GNUNET_ARM_disconnect_and_free () to free the handle and prevent
275 * further connection attempts. 275 * further connection attempts.
276 * 276 *
277 * @param h handle to ARM 277 * @param h handle to ARM
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index a3b970887..057ab7056 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -1028,7 +1028,7 @@ arm_da (void *cls, void *op_result)
1028 1028
1029 if (NULL != peer->arm_handle) 1029 if (NULL != peer->arm_handle)
1030 { 1030 {
1031 GNUNET_ARM_disconnect (peer->arm_handle); 1031 GNUNET_ARM_disconnect_and_free (peer->arm_handle);
1032 peer->arm_handle = NULL; 1032 peer->arm_handle = NULL;
1033 } 1033 }
1034} 1034}