kernel: Use a time_t to report use time in query_policy()

This commit is contained in:
Martin Willi
2013-10-11 10:23:17 +02:00
parent c99458e94e
commit d7083b6541
11 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -489,12 +489,12 @@ static bool update_usetime(private_child_sa_t *this, bool inbound)
{
enumerator_t *enumerator;
traffic_selector_t *my_ts, *other_ts;
u_int32_t last_use = 0;
time_t last_use = 0;
enumerator = create_policy_enumerator(this);
while (enumerator->enumerate(enumerator, &my_ts, &other_ts))
{
u_int32_t in, out, fwd;
time_t in, out, fwd;
if (inbound)
{