Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC after:	1 week
This commit is contained in:
kris 2001-05-20 05:37:46 +00:00
parent 70d80ba289
commit 370c50d300
5 changed files with 8 additions and 1 deletions

View File

@ -4,4 +4,6 @@
PROG= sync
MAN= sync.8
WARNS= 2
.include <bsd.prog.mk>

View File

@ -47,6 +47,8 @@ static const char rcsid[] =
#include <unistd.h>
int main __P((void));
int
main()
{

View File

@ -8,6 +8,8 @@ CFLAGS+=-traditional-cpp
HIDEGAME=hidegame
CLEANFILES=data.c setup setup.o
WARNS= 2
build-tools: setup
data.c: glorkz setup

View File

@ -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;

View File

@ -48,6 +48,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include "hdr.h"