- changed memory allocator functions to own allocator calls

This commit is contained in:
Jan Hutter
2005-11-09 09:11:06 +00:00
parent c1ca1ee042
commit 7953866962
22 changed files with 606 additions and 606 deletions
+7 -7
View File
@@ -1,8 +1,8 @@
/**
* @file job.c
*
*
* @brief Job-Class representing a job e.g. in job_queue
*
*
*/
/*
@@ -24,15 +24,15 @@
#include <freeswan.h>
#include <pluto/constants.h>
#include <pluto/defs.h>
#include "job.h"
/**
* @brief implements function destroy of job_t
*/
static status_t job_destroy(job_t *job)
{
pfree(job);
allocator_free(job);
return SUCCESS;
}
@@ -41,12 +41,12 @@ static status_t job_destroy(job_t *job)
*/
job_t *job_create(job_type_t type, void *assigned_data)
{
job_t *this = alloc_thing(job_t, "job_t");
job_t *this = allocator_alloc_thing(job_t, "job_t");
this->destroy = job_destroy;
this->type = type;
this->assigned_data = assigned_data;
return this;
}