From 0f7d381cfecdbdfcd8d6e7523d5df40181971296 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 14 Feb 2012 09:34:48 +0100 Subject: [PATCH] pluto: Print expiry time more properly. --- src/pluto/defs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pluto/defs.c b/src/pluto/defs.c index 404194b81..7f3a819de 100644 --- a/src/pluto/defs.c +++ b/src/pluto/defs.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -124,8 +125,8 @@ check_expiry(time_t expiration_date, int warning_interval, bool strict) time_left /= 60; unit = "minute"; } - snprintf(buf, 35, "warning (expires in %d %s%s)", time_left, - unit, (time_left == 1)?"":"s"); + snprintf(buf, 35, "warning (expires in %" PRIu64 " %s%s)", + (u_int64_t)time_left, unit, (time_left == 1) ? "" : "s"); return buf; } }