diff options
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/arm_api.c | 4 | ||||
-rw-r--r-- | src/arm/arm_monitor_api.c | 2 | ||||
-rw-r--r-- | src/arm/test_exponential_backoff.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 7e6ce1870..6c0dec4a6 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c | |||
@@ -636,7 +636,7 @@ GNUNET_ARM_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
636 | { | 636 | { |
637 | struct GNUNET_ARM_Handle *h; | 637 | struct GNUNET_ARM_Handle *h; |
638 | 638 | ||
639 | h = GNUNET_malloc (sizeof (struct GNUNET_ARM_Handle)); | 639 | h = GNUNET_new (struct GNUNET_ARM_Handle); |
640 | h->cfg = GNUNET_CONFIGURATION_dup (cfg); | 640 | h->cfg = GNUNET_CONFIGURATION_dup (cfg); |
641 | h->currently_down = GNUNET_YES; | 641 | h->currently_down = GNUNET_YES; |
642 | h->reconnect_task = GNUNET_SCHEDULER_NO_TASK; | 642 | h->reconnect_task = GNUNET_SCHEDULER_NO_TASK; |
@@ -1067,7 +1067,7 @@ GNUNET_ARM_request_service_list (struct GNUNET_ARM_Handle *h, | |||
1067 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1067 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1068 | "Requesting LIST from ARM service with timeout: %s\n", | 1068 | "Requesting LIST from ARM service with timeout: %s\n", |
1069 | GNUNET_STRINGS_relative_time_to_string (timeout, GNUNET_YES)); | 1069 | GNUNET_STRINGS_relative_time_to_string (timeout, GNUNET_YES)); |
1070 | cm = GNUNET_malloc (sizeof (struct ARMControlMessage)); | 1070 | cm = GNUNET_new (struct ARMControlMessage); |
1071 | cm->h = h; | 1071 | cm->h = h; |
1072 | cm->list_cont = cont; | 1072 | cm->list_cont = cont; |
1073 | cm->cont_cls = cont_cls; | 1073 | cm->cont_cls = cont_cls; |
diff --git a/src/arm/arm_monitor_api.c b/src/arm/arm_monitor_api.c index 7b403fde8..676543f26 100644 --- a/src/arm/arm_monitor_api.c +++ b/src/arm/arm_monitor_api.c | |||
@@ -251,7 +251,7 @@ GNUNET_ARM_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
251 | { | 251 | { |
252 | struct GNUNET_ARM_MonitorHandle *h; | 252 | struct GNUNET_ARM_MonitorHandle *h; |
253 | 253 | ||
254 | h = GNUNET_malloc (sizeof (struct GNUNET_ARM_MonitorHandle)); | 254 | h = GNUNET_new (struct GNUNET_ARM_MonitorHandle); |
255 | h->cfg = GNUNET_CONFIGURATION_dup (cfg); | 255 | h->cfg = GNUNET_CONFIGURATION_dup (cfg); |
256 | h->currently_down = GNUNET_YES; | 256 | h->currently_down = GNUNET_YES; |
257 | h->reconnect_task = GNUNET_SCHEDULER_NO_TASK; | 257 | h->reconnect_task = GNUNET_SCHEDULER_NO_TASK; |
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c index 0561c3ea8..7a552cc7c 100644 --- a/src/arm/test_exponential_backoff.c +++ b/src/arm/test_exponential_backoff.c | |||
@@ -214,7 +214,7 @@ do_nothing_service_shutdown (struct GNUNET_CLIENT_Connection *sock, | |||
214 | { | 214 | { |
215 | struct ShutdownContext *shutdown_ctx; | 215 | struct ShutdownContext *shutdown_ctx; |
216 | 216 | ||
217 | shutdown_ctx = GNUNET_malloc (sizeof (struct ShutdownContext)); | 217 | shutdown_ctx = GNUNET_new (struct ShutdownContext); |
218 | shutdown_ctx->cont = cont; | 218 | shutdown_ctx->cont = cont; |
219 | shutdown_ctx->cont_cls = cont_cls; | 219 | shutdown_ctx->cont_cls = cont_cls; |
220 | shutdown_ctx->sock = sock; | 220 | shutdown_ctx->sock = sock; |