diff options
author | kris <kris@FreeBSD.org> | 2001-05-20 05:37:46 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-05-20 05:37:46 +0000 |
commit | 370c50d30036d203968bd6054c10d19d4affb7ea (patch) | |
tree | b29e92bffd4c21a621fd2c86e2fc5aab27eb4f61 /games/adventure | |
parent | 70d80ba289bbd89e4d5fe68364b987b9358647e5 (diff) | |
download | FreeBSD-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/adventure')
-rw-r--r-- | games/adventure/Makefile | 2 | ||||
-rw-r--r-- | games/adventure/io.c | 2 | ||||
-rw-r--r-- | games/adventure/vocab.c | 1 |
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" |