diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/arm/arm_api.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/arm/arm_api.c')
-rw-r--r-- | src/arm/arm_api.c | 4 |
1 files changed, 2 insertions, 2 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; |