From 85c4fbe7ee5e2b018e1e41b41eff1361bf2b536c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 14 Sep 2010 04:03:25 +0000 Subject: cast time_t to unsigned long and use %lu instead of %u --- common/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/print.c b/common/print.c index 72c002e6..51b8bc69 100644 --- a/common/print.c +++ b/common/print.c @@ -1558,8 +1558,8 @@ print_time(TIME t) if ((strftime(buf1, sizeof(buf1), "# %a %b %d %H:%M:%S %Y", localtime(&t)) == 0) || - (snprintf(buf, sizeof(buf), "epoch %u; %s", - since_epoch, buf1) >= sizeof(buf))) + (snprintf(buf, sizeof(buf), "epoch %lu; %s", + (unsigned long)since_epoch, buf1) >= sizeof(buf))) return NULL; } else { -- cgit v1.2.1