Fixed task_manager_v1 compiler warnings
authorMartin Willi <martin@revosec.ch>
Wed, 23 Nov 2011 13:33:03 +0000 (14:33 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:50 +0000 (17:30 +0100)
src/libcharon/sa/task_manager_v1.c

index 55bc8b7..cecb879 100644 (file)
 
 #include "task_manager_v1.h"
 
+#include <math.h>
+
 #include <daemon.h>
 #include <sa/tasks/main_mode.h>
 #include <sa/tasks/quick_mode.h>
+#include <processing/jobs/retransmit_job.h>
 
 typedef struct exchange_t exchange_t;
 
@@ -190,10 +193,8 @@ METHOD(task_manager_t, retransmit, status_t,
        if (message_id == this->initiating.mid)
        {
                u_int32_t timeout;
-               job_t *job;
-               enumerator_t *enumerator;
                packet_t *packet;
-               task_t *task;
+               job_t *job;
 
                if (this->initiating.retransmitted <= this->retransmit_tries)
                {