diff options
| author | Gavin Atkinson <gavin@FreeBSD.org> | 2010-06-28 08:30:10 +0000 |
|---|---|---|
| committer | Gavin Atkinson <gavin@FreeBSD.org> | 2010-06-28 08:30:10 +0000 |
| commit | 84f70ae3602ddc646bd0bef4f2f77b868499e3c4 (patch) | |
| tree | a3806b4dea66601324f8c1e8d0ac023710317673 /usr.bin/lock | |
| parent | aac0676809f020178ba8d239eac863f186857e6c (diff) | |
Notes
Diffstat (limited to 'usr.bin/lock')
| -rw-r--r-- | usr.bin/lock/Makefile | 2 | ||||
| -rw-r--r-- | usr.bin/lock/lock.c | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/lock/Makefile b/usr.bin/lock/Makefile index 8093ca51ba1d..dc09a87b1b9c 100644 --- a/usr.bin/lock/Makefile +++ b/usr.bin/lock/Makefile @@ -7,6 +7,4 @@ BINMODE=4555 DPADD= ${LIBCRYPT} LDADD= -lcrypt -WARNS?= 1 - .include <bsd.prog.mk> diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c index 3b19e35bbe1c..eef4caabb324 100644 --- a/usr.bin/lock/lock.c +++ b/usr.bin/lock/lock.c @@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$"); #include <ctype.h> #include <errno.h> #include <pwd.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -257,9 +258,9 @@ hi(int signo __unused) if (no_timeout) { (void)putchar('\n'); } else { - (void)printf("timeout in %ld:%ld minutes\n", - (nexttime - timval.tv_sec) / 60, - (nexttime - timval.tv_sec) % 60); + (void)printf("timeout in %jd:%jd minutes\n", + (intmax_t)(nexttime - timval.tv_sec) / 60, + (intmax_t)(nexttime - timval.tv_sec) % 60); } } } |
