pluto: Fixed expiration date test.
authorTobias Brunner <tobias@strongswan.org>
Fri, 23 Dec 2011 14:32:06 +0000 (15:32 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 23 Dec 2011 14:32:06 +0000 (15:32 +0100)
src/pluto/defs.c

index f83318e..404194b 100644 (file)
@@ -91,8 +91,7 @@ mv_chunk(u_char **pos, chunk_t content)
 const char*
 check_expiry(time_t expiration_date, int warning_interval, bool strict)
 {
-       time_t now;
-       int time_left;
+       time_t now, time_left;
 
        if (expiration_date == UNDEFINED_TIME)
          return "ok (expires never)";