Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC After:	1 week
This commit is contained in:
Kris Kennaway 2001-05-20 06:16:53 +00:00
parent 1a93d71ebc
commit 81d50432af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76888
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@
# $FreeBSD$
PROG= banner
CFLAGS+=-Wall
MAN= banner.6
WARNS= 2
.include <bsd.prog.mk>

View File

@ -1072,7 +1072,7 @@ main(int argc, char *argv[])
}
nchars = strlen(message);
} else {
if ((message = malloc(MAXMSG)) == NULL)
if ((message = malloc((size_t)MAXMSG)) == NULL)
err(1, "malloc");
fprintf(stderr,"Message: ");
(void)fgets(message, MAXMSG, stdin);