diff options
Diffstat (limited to 'battlestar/room.c')
| -rw-r--r-- | battlestar/room.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/battlestar/room.c b/battlestar/room.c index 5cbaf850..81d28a67 100644 --- a/battlestar/room.c +++ b/battlestar/room.c @@ -1,4 +1,4 @@ -/* $NetBSD: room.c,v 1.11 2003/08/07 09:37:03 agc Exp $ */ +/* $NetBSD: room.c,v 1.12 2005/07/01 06:04:54 jmc Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,14 +34,14 @@ #if 0 static char sccsid[] = "@(#)room.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: room.c,v 1.11 2003/08/07 09:37:03 agc Exp $"); +__RCSID("$NetBSD: room.c,v 1.12 2005/07/01 06:04:54 jmc Exp $"); #endif #endif /* not lint */ #include "extern.h" void -writedes() +writedes(void) { int compass; const char *p; @@ -65,7 +65,7 @@ writedes() } void -printobjs() +printobjs(void) { unsigned int *p = location[position].objects; int n; @@ -77,8 +77,7 @@ printobjs() } void -whichway(here) - struct room here; +whichway(struct room here) { switch (direction) { @@ -113,10 +112,8 @@ whichway(here) } } -const char * -truedirec(way, option) - int way; - char option; +const char * +truedirec(int way, int option) { switch (way) { @@ -173,14 +170,14 @@ truedirec(way, option) } default: - printf("Error: room %d. More than four directions wanted.", position); + printf("Error: room %d. More than four directions wanted.", + position); return ("!!"); } } void -newway(thisway) - int thisway; +newway(int thisway) { switch (direction) { |
