mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make WARNS=6 safe.
Tested by: make universe
This commit is contained in:
parent
aac0676809
commit
84f70ae360
2 changed files with 4 additions and 5 deletions
|
|
@ -7,6 +7,4 @@ BINMODE=4555
|
|||
DPADD= ${LIBCRYPT}
|
||||
LDADD= -lcrypt
|
||||
|
||||
WARNS?= 1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue