From 8e6c4b2e072b8cd10755e774540655e2d3102354 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 31 Aug 2008 17:27:47 +0000 Subject: [PATCH] * src/chage.c: Fix the format for long integers (from %ul to %lu). --- ChangeLog | 4 ++++ src/chage.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 513aad97..961302d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-08-28 Nicolas François + + * src/chage.c: Fix the format for long integers (from %ul to %lu). + 2008-08-28 Nicolas François * libmisc/utmp.c: Mark the line and host arguments of setutmp() as diff --git a/src/chage.c b/src/chage.c index f3fee242..269c7efe 100644 --- a/src/chage.c +++ b/src/chage.c @@ -282,7 +282,7 @@ static void print_date (time_t date) tp = gmtime (&date); if (NULL == tp) { - (void) printf ("time_t: %ul\n", date); + (void) printf ("time_t: %lu\n", date); } else { (void) strftime (buf, sizeof buf, "%b %d, %Y", tp); (void) puts (buf); @@ -298,7 +298,7 @@ static void print_date (time_t date) if (NULL != cp) { (void) printf ("%6.6s, %4.4s\n", cp + 4, cp + 20); } else { - (void) printf ("time_t: %ul\n", date); + (void) printf ("time_t: %lu\n", date); } #endif }