diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-22 04:43:42 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-22 04:43:42 +0000 |
commit | 323d1abbc45a9dfeae3d39b5f8cc041dc4b73bd1 (patch) | |
tree | 64ea330e44da28fb9da88722be4cb4e200afe707 /usr.bin/last/last.c | |
parent | 31003a7e68970e14de72e158246cccd33cccc1e7 (diff) |
Correct format string mismatches turned up by -Wformat=2
suggestions and ok millert@
Diffstat (limited to 'usr.bin/last/last.c')
-rw-r--r-- | usr.bin/last/last.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c index d404dad6f27..33ec175a097 100644 --- a/usr.bin/last/last.c +++ b/usr.bin/last/last.c @@ -1,4 +1,4 @@ -/* $OpenBSD: last.c,v 1.38 2013/02/18 10:40:12 fgsch Exp $ */ +/* $OpenBSD: last.c,v 1.39 2013/08/22 04:43:40 guenther Exp $ */ /* $NetBSD: last.c,v 1.6 1994/12/24 16:49:02 cgd Exp $ */ /* @@ -377,8 +377,8 @@ wtmp(void) timesize, timesize, asctime(gmtime(&delta))+11); else - printf(" (%ld+%*.*s)\n", - delta / SECSPERDAY, + printf(" (%lld+%*.*s)\n", + (long long)delta / SECSPERDAY, timesize, timesize, asctime(gmtime(&delta))+11); } |