summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-05-20 05:37:46 +0000
committerkris <kris@FreeBSD.org>2001-05-20 05:37:46 +0000
commit370c50d30036d203968bd6054c10d19d4affb7ea (patch)
treeb29e92bffd4c21a621fd2c86e2fc5aab27eb4f61 /games
parent70d80ba289bbd89e4d5fe68364b987b9358647e5 (diff)
downloadFreeBSD-src-370c50d30036d203968bd6054c10d19d4affb7ea.zip
FreeBSD-src-370c50d30036d203968bd6054c10d19d4affb7ea.tar.gz
Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC after: 1 week
Diffstat (limited to 'games')
-rw-r--r--games/adventure/Makefile2
-rw-r--r--games/adventure/io.c2
-rw-r--r--games/adventure/vocab.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/games/adventure/Makefile b/games/adventure/Makefile
index f1a912a..a6404e7 100644
--- a/games/adventure/Makefile
+++ b/games/adventure/Makefile
@@ -8,6 +8,8 @@ CFLAGS+=-traditional-cpp
HIDEGAME=hidegame
CLEANFILES=data.c setup setup.o
+WARNS= 2
+
build-tools: setup
data.c: glorkz setup
diff --git a/games/adventure/io.c b/games/adventure/io.c
index ef76088..92c27dc 100644
--- a/games/adventure/io.c
+++ b/games/adventure/io.c
@@ -533,7 +533,7 @@ int skip; /* assumes object 1 doesn't have prop 1, obj 2 no prop 2 &c*/
msg = &ptext[m];
if ((tbuf=(char *) malloc(msg->txtlen + 1)) == 0)
errx(1, "Out of memory!");
- memcpy(tbuf, msg->seekadr, (u_int)msg->txtlen + 1); /* Room to null */
+ memcpy(tbuf, msg->seekadr, (size_t)msg->txtlen + 1); /* Room to null */
s = tbuf;
nonfirst=0;
diff --git a/games/adventure/vocab.c b/games/adventure/vocab.c
index 318de18..7db00ee 100644
--- a/games/adventure/vocab.c
+++ b/games/adventure/vocab.c
@@ -48,6 +48,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <err.h>
#include "hdr.h"
OpenPOWER on IntegriCloud