* src/chage.c: Fix the format for long integers (from %ul to %lu).

This commit is contained in:
nekral-guest 2008-08-31 17:27:47 +00:00
parent 4507bd32af
commit 8e6c4b2e07
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* src/chage.c: Fix the format for long integers (from %ul to %lu).
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/utmp.c: Mark the line and host arguments of setutmp() as

View File

@ -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
}