aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/scheduler.c
diff options
context:
space:
mode:
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)