aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/generator.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/generator.c
parent79538669625bbae26fcef5d791b2246242c5a407 (diff)
downloadstrongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.bz2
strongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.xz
- memory allocation now works with allocator-functions...
Diffstat (limited to 'Source/charon/generator.c')
-rw-r--r--Source/charon/generator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/charon/generator.c b/Source/charon/generator.c
index dd7b1e58e..c06cba6ac 100644
--- a/Source/charon/generator.c
+++ b/Source/charon/generator.c
@@ -25,6 +25,7 @@
#include <pluto/constants.h>
#include <pluto/defs.h>
+#include "allocator.h"
#include "types.h"
#include "generator.h"
@@ -106,7 +107,7 @@ static status_t generate_u_int_type (private_generator_t *this,encoding_type_t i
*/
static status_t generate (private_generator_t *this,void * data_struct,encoding_rule_t *encoding_rules, size_t encoding_rules_count, chunk_t *data)
{
- u_int8_t * buffer = allocator_alloc(GENERATOR_DATA_BUFFER_SIZE, "generator buffer");
+ u_int8_t * buffer = allocator_alloc(GENERATOR_DATA_BUFFER_SIZE);
u_int8_t * out_position = buffer;
u_int8_t * roof_position = buffer + GENERATOR_DATA_BUFFER_SIZE;
size_t current_bit = 0;
@@ -188,7 +189,7 @@ generator_t * generator_create(payload_info_t ** payload_infos)
return NULL;
}
- this = allocator_alloc_thing(private_generator_t,"private_generator_t");
+ this = allocator_alloc_thing(private_generator_t);
if (this == NULL)
{
return NULL;