diff options
| author | jmc <jmc@NetBSD.org> | 2005-07-01 06:04:46 +0000 |
|---|---|---|
| committer | jmc <jmc@NetBSD.org> | 2005-07-01 06:04:46 +0000 |
| commit | 4fe92d1fcdbb2fc53d5d338814045f676c06cc4a (patch) | |
| tree | 9c573af7165124e541518f30ca2b526fbb2fc162 /battlestar/room.c | |
| parent | cd55bb615f356f190eb2f57ad04366ecece7a545 (diff) | |
| download | bsdgames-darwin-4fe92d1fcdbb2fc53d5d338814045f676c06cc4a.tar.gz bsdgames-darwin-4fe92d1fcdbb2fc53d5d338814045f676c06cc4a.zip | |
KNF and WARNS=3
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) { |
