From 3aa33c149cde8dbe6dc03e05e1f550e954a6c745 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 14 Dec 1996 15:21:26 +0000 Subject: [PATCH] some cleanup from bde@freebsd --- games/adventure/hdr.h | 1 - games/adventure/setup.c | 4 +++- games/adventure/vocab.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/games/adventure/hdr.h b/games/adventure/hdr.h index 6e1440b896e..9b8a7a5324a 100644 --- a/games/adventure/hdr.h +++ b/games/adventure/hdr.h @@ -158,7 +158,6 @@ int turns,lmwarn,iwest,knfloc,detail, /* various flags & counters */ int demo,newloc,limit; -char *malloc(); char *decr(); unsigned long crc(); diff --git a/games/adventure/setup.c b/games/adventure/setup.c index 042e1e04226..c5c4a96c182 100644 --- a/games/adventure/setup.c +++ b/games/adventure/setup.c @@ -97,6 +97,8 @@ char *argv[]; while ((c = getc(infile)) != EOF) { + if (count++ % LINE == 0) + printf("\n\t"); if (linestart && c == ' ') /* Convert first spaces to tab */ { printf("0x%02x,", ('\t' ^ random()) & 0xFF); @@ -113,7 +115,7 @@ char *argv[]; linestart = YES; /* Ready to convert spaces again */ break; } - if (count++ % LINE == 0) /* Finished a line? */ + if (count++ % LINE == 0) printf("\n\t"); printf("0x%02x,", (c ^ random()) & 0xFF); } diff --git a/games/adventure/vocab.c b/games/adventure/vocab.c index f6ae1656e07..dbd451cdaaf 100644 --- a/games/adventure/vocab.c +++ b/games/adventure/vocab.c @@ -48,7 +48,8 @@ static char rcsid[] = "$NetBSD: vocab.c,v 1.2 1995/03/21 12:05:13 cgd Exp $"; /* Re-coding of advent in C: data structure routines */ -# include "hdr.h" +#include +#include "hdr.h" dstroy(object) int object; -- 2.20.1