aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/scheduler.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/scheduler.c
parent79538669625bbae26fcef5d791b2246242c5a407 (diff)
downloadstrongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.bz2
strongswan-6c4b815f22341ad3c2574b42a64b39e16ef1e7c7.tar.xz
- memory allocation now works with allocator-functions...
Diffstat (limited to 'Source/charon/scheduler.c')
-rw-r--r--Source/charon/scheduler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/charon/scheduler.c b/Source/charon/scheduler.c
index 05d999b87..7a00bc88f 100644
--- a/Source/charon/scheduler.c
+++ b/Source/charon/scheduler.c
@@ -26,6 +26,7 @@
#include <pluto/constants.h>
#include <pluto/defs.h>
+#include "allocator.h"
#include "scheduler.h"
#include "job_queue.h"
#include "globals.h"
@@ -85,7 +86,7 @@ static status_t destroy(private_scheduler_t *this)
scheduler_t * scheduler_create()
{
- private_scheduler_t *this = allocator_alloc_thing(private_scheduler_t,"private_scheduler_t");
+ private_scheduler_t *this = allocator_alloc_thing(private_scheduler_t);
this->public.destroy = (status_t(*)(scheduler_t*)) destroy;
if (pthread_create(&(this->assigned_thread), NULL, (void*(*)(void*))scheduler_thread_function, this) != 0)