fixed compile warnings when using -Wall

further CHILD_SA rekeying work done:
	creation of a new CHILD_SA on a expire from a kernel works
	delete of old CHILD_SA still missing
	some issues when both initiate rekeing
This commit is contained in:
Martin Willi
2006-06-08 14:20:05 +00:00
parent c0d63ac9db
commit 5238c9afef
25 changed files with 829 additions and 206 deletions
+6 -2
View File
@@ -20,6 +20,9 @@
* for more details.
*/
#include <time.h>
#include <string.h>
#include "policy.h"
#include <utils/linked_list.h>
@@ -293,7 +296,8 @@ static void add_proposal(private_policy_t *this, proposal_t *proposal)
*/
static u_int32_t get_soft_lifetime(policy_t *this)
{
return 0; /*5 + random() % 5; */
srandom(time(NULL));
return 0; //5 + random() % 3;
}
/**
@@ -301,7 +305,7 @@ static u_int32_t get_soft_lifetime(policy_t *this)
*/
static u_int32_t get_hard_lifetime(policy_t *this)
{
return 0; /*20; */
return 0; //9;
}
/**