summaryrefslogtreecommitdiffstats
path: root/usr.bin/banner
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-05-20 06:16:53 +0000
committerkris <kris@FreeBSD.org>2001-05-20 06:16:53 +0000
commit0788a7a330da74ce1ac79f5ede866d1164cc9e9c (patch)
treed1e7010c2d0df52d1d86438d077942d85b9da19e /usr.bin/banner
parent65be28ca850a42ab90c0f0981e42f795f4390252 (diff)
downloadFreeBSD-src-0788a7a330da74ce1ac79f5ede866d1164cc9e9c.zip
FreeBSD-src-0788a7a330da74ce1ac79f5ede866d1164cc9e9c.tar.gz
Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC After: 1 week
Diffstat (limited to 'usr.bin/banner')
-rw-r--r--usr.bin/banner/Makefile3
-rw-r--r--usr.bin/banner/banner.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/banner/Makefile b/usr.bin/banner/Makefile
index 21e4686..a6b264d 100644
--- a/usr.bin/banner/Makefile
+++ b/usr.bin/banner/Makefile
@@ -2,7 +2,8 @@
# $FreeBSD$
PROG= banner
-CFLAGS+=-Wall
MAN= banner.6
+WARNS= 2
+
.include <bsd.prog.mk>
diff --git a/usr.bin/banner/banner.c b/usr.bin/banner/banner.c
index 1cb12ea..095f131 100644
--- a/usr.bin/banner/banner.c
+++ b/usr.bin/banner/banner.c
@@ -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);
OpenPOWER on IntegriCloud