diff --git a/bin/sync/Makefile b/bin/sync/Makefile index 72c664f4afdd..15f7abec64ea 100644 --- a/bin/sync/Makefile +++ b/bin/sync/Makefile @@ -4,4 +4,6 @@ PROG= sync MAN= sync.8 +WARNS= 2 + .include diff --git a/bin/sync/sync.c b/bin/sync/sync.c index 6fe316022702..2a3b5181849e 100644 --- a/bin/sync/sync.c +++ b/bin/sync/sync.c @@ -47,6 +47,8 @@ static const char rcsid[] = #include +int main __P((void)); + int main() { diff --git a/games/adventure/Makefile b/games/adventure/Makefile index f1a912addb65..a6404e799e45 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 ef76088141d4..92c27dc50e33 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 318de184596e..7db00eeeecd2 100644 --- a/games/adventure/vocab.c +++ b/games/adventure/vocab.c @@ -48,6 +48,7 @@ static const char rcsid[] = #include #include +#include #include #include "hdr.h"