summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/makemaze.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-07-04 01:58:57 +0000
committerdholland <dholland@NetBSD.org>2009-07-04 01:58:57 +0000
commit6f8367e238e03f94d7cad37b751809e6c86c5fd0 (patch)
tree274353fee90bb01e76107c50c61d0b53f30db2c1 /hunt/huntd/makemaze.c
parent76f63b88b5274fe80f728b7af04e5bb6df552882 (diff)
downloadbsdgames-darwin-6f8367e238e03f94d7cad37b751809e6c86c5fd0.tar.gz
bsdgames-darwin-6f8367e238e03f94d7cad37b751809e6c86c5fd0.tar.zst
bsdgames-darwin-6f8367e238e03f94d7cad37b751809e6c86c5fd0.zip
ANSIfy function declarations.
Diffstat (limited to 'hunt/huntd/makemaze.c')
-rw-r--r--hunt/huntd/makemaze.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/hunt/huntd/makemaze.c b/hunt/huntd/makemaze.c
index 4b58f92f..8beee4ff 100644
--- a/hunt/huntd/makemaze.c
+++ b/hunt/huntd/makemaze.c
@@ -1,4 +1,4 @@
-/* $NetBSD: makemaze.c,v 1.4 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: makemaze.c,v 1.5 2009/07/04 02:37:20 dholland Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: makemaze.c,v 1.4 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: makemaze.c,v 1.5 2009/07/04 02:37:20 dholland Exp $");
#endif /* not lint */
# include "hunt.h"
@@ -46,7 +46,7 @@ static void dig_maze(int, int);
static void remap(void);
void
-makemaze()
+makemaze(void)
{
char *sp;
int y, x;
@@ -81,8 +81,7 @@ int incr[NDIR][2] = {
};
static void
-dig(y, x)
- int y, x;
+dig(int y, int x)
{
int *dp;
int *ip;
@@ -106,8 +105,7 @@ dig(y, x)
* Is it legal to clear this spot?
*/
static int
-candig(y, x)
- int y, x;
+candig(int y, int x)
{
int i;
@@ -137,8 +135,7 @@ candig(y, x)
}
void
-dig_maze(x, y)
- int x, y;
+dig_maze(int x, int y)
{
int tx, ty;
int i, j;
@@ -185,7 +182,7 @@ dig_maze(x, y)
}
void
-remap()
+remap(void)
{
int y, x;
char *sp;