aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/ike_sa_manager.c
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-09 09:35:06 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-09 09:35:06 +0000
commit6c4b815f22341ad3c2574b42a64b39e16ef1e7c7 (patch)
tree57c322fecce2b837b34654758a0e394ffdfaa90e /Source/charon/ike_sa_manager.c
parent79538669625bbae26fcef5d791b2246242c5a407 (diff)
downloadstrongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.bz2
strongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.xz
- memory allocation now works with allocator-functions...
Diffstat (limited to 'Source/charon/ike_sa_manager.c')
-rw-r--r--Source/charon/ike_sa_manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/charon/ike_sa_manager.c b/Source/charon/ike_sa_manager.c
index 19a7139b3..267e3b0da 100644
--- a/Source/charon/ike_sa_manager.c
+++ b/Source/charon/ike_sa_manager.c
@@ -23,6 +23,7 @@
#include <pthread.h>
#include <string.h>
+#include "allocator.h"
#include "ike_sa_manager.h"
#include "linked_list.h"
#include "ike_sa_id.h"
@@ -78,7 +79,7 @@ static status_t ike_sa_entry_destroy(ike_sa_entry_t *this)
*/
ike_sa_entry_t *ike_sa_entry_create(ike_sa_id_t *ike_sa_id)
{
- ike_sa_entry_t *this = allocator_alloc_thing(ike_sa_entry_t, "ike_sa_entry_t");
+ ike_sa_entry_t *this = allocator_alloc_thing(ike_sa_entry_t);
this->destroy = ike_sa_entry_destroy;
this->waiting_threads = 0;
@@ -512,7 +513,7 @@ static status_t destroy(private_ike_sa_manager_t *this)
ike_sa_manager_t *ike_sa_manager_create()
{
- private_ike_sa_manager_t *this = allocator_alloc_thing(private_ike_sa_manager_t, "private_ike_sa_manager_t");
+ private_ike_sa_manager_t *this = allocator_alloc_thing(private_ike_sa_manager_t);
/* assign public functions */
this->public.destroy = (status_t(*)(ike_sa_manager_t*))destroy;