From 28a2fb534d0a6db57738352113f148c57f1078f1 Mon Sep 17 00:00:00 2001 From: dholland Date: Mon, 25 May 2009 23:08:45 +0000 Subject: ANSIfy function declarations. Object file diffs cross-checked. --- phantasia/setup.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'phantasia/setup.c') diff --git a/phantasia/setup.c b/phantasia/setup.c index b192e847..1d5f9514 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.18 2008/01/16 23:23:25 lukem Exp $ */ +/* $NetBSD: setup.c,v 1.19 2009/05/25 23:08:45 dholland Exp $ */ /* * setup.c - set up all files for Phantasia @@ -68,9 +68,7 @@ static const char *const files[] = { /* all files to create */ const char *monsterfile = "monsters.asc"; int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { const char *const *filename; /* for pointing to file names */ int fd; /* file descriptor */ @@ -229,8 +227,7 @@ main(argc, argv) / ************************************************************************/ void -Error(str, file) - const char *str, *file; +Error(const char *str, const char *file) { fprintf(stderr, "Error: "); fprintf(stderr, str, file); @@ -262,7 +259,7 @@ Error(str, file) / ************************************************************************/ double -drandom() +drandom(void) { if (sizeof(int) != 2) return((double) (random() & 0x7fff) / 32768.0); -- cgit v1.2.3-56-ge451