Make WARNS=6 safe.

Tested by:	make universe
This commit is contained in:
Gavin Atkinson 2010-06-28 08:30:10 +00:00
parent aac0676809
commit 84f70ae360
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209567
2 changed files with 4 additions and 5 deletions

View File

@ -7,6 +7,4 @@ BINMODE=4555
DPADD= ${LIBCRYPT}
LDADD= -lcrypt
WARNS?= 1
.include <bsd.prog.mk>

View File

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