diff options
author | dholland <dholland@NetBSD.org> | 2008-02-20 05:08:46 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-20 05:08:46 +0000 |
commit | 9e08b8f561982e00fcb27264931b54cbbfaf5cb6 (patch) | |
tree | ecce4717a02706a2ff9bca43d58910322b8e276f /monop | |
parent | 097774360f5b918275ec015d8a33ab6c57b812b5 (diff) | |
download | bsdgames-darwin-9e08b8f561982e00fcb27264931b54cbbfaf5cb6.tar.gz bsdgames-darwin-9e08b8f561982e00fcb27264931b54cbbfaf5cb6.tar.zst bsdgames-darwin-9e08b8f561982e00fcb27264931b54cbbfaf5cb6.zip |
A few more whitespace/KNF. I keep hoping I've found them all...
Diffstat (limited to 'monop')
-rw-r--r-- | monop/monop.def | 8 | ||||
-rw-r--r-- | monop/morg.c | 6 | ||||
-rw-r--r-- | monop/print.c | 7 | ||||
-rw-r--r-- | monop/prop.c | 10 |
4 files changed, 14 insertions, 17 deletions
diff --git a/monop/monop.def b/monop/monop.def index 579175e3..af7b3653 100644 --- a/monop/monop.def +++ b/monop/monop.def @@ -1,4 +1,4 @@ -/* $NetBSD: monop.def,v 1.10 2008/02/19 09:25:21 dholland Exp $ */ +/* $NetBSD: monop.def,v 1.11 2008/02/20 05:08:46 dholland Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -106,13 +106,13 @@ RR_S rr[N_RR]; /* railroad descriptions */ UTIL_S util[2]; /* utility descriptions */ MON mon[N_MON] = { /* monopoly descriptions */ -# include "mon.dat" +#include "mon.dat" }; PROP prop[N_PROP] = { /* typical properties */ -# include "prop.dat" +#include "prop.dat" }; SQUARE board[N_SQRS+1] = { /* board itself (+1 for Jail) */ -# include "brd.dat" +#include "brd.dat" }; diff --git a/monop/morg.c b/monop/morg.c index d654993d..faf72096 100644 --- a/monop/morg.c +++ b/monop/morg.c @@ -1,4 +1,4 @@ -/* $NetBSD: morg.c,v 1.13 2008/02/19 09:45:02 dholland Exp $ */ +/* $NetBSD: morg.c,v 1.14 2008/02/20 05:08:46 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)morg.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: morg.c,v 1.13 2008/02/19 09:45:02 dholland Exp $"); +__RCSID("$NetBSD: morg.c,v 1.14 2008/02/20 05:08:46 dholland Exp $"); #endif #endif /* not lint */ @@ -66,7 +66,7 @@ static const char *names[MAX_PRP+2], static short square[MAX_PRP+2]; -static int num_good,got_houses; +static int num_good, got_houses; static int set_mlist(void); diff --git a/monop/print.c b/monop/print.c index 898c6eef..b97cf48e 100644 --- a/monop/print.c +++ b/monop/print.c @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.9 2008/02/19 09:45:02 dholland Exp $ */ +/* $NetBSD: print.c,v 1.10 2008/02/20 05:08:46 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: print.c,v 1.9 2008/02/19 09:45:02 dholland Exp $"); +__RCSID("$NetBSD: print.c,v 1.10 2008/02/20 05:08:46 dholland Exp $"); #endif #endif /* not lint */ @@ -123,8 +123,7 @@ printsq(sqn, eoln) printf("0 %4d", pp->rent[0] * 2); else printf("H %4d", pp->rent[5]); - } - else + } else printf(" %4d", pp->rent[0]); break; case UTIL: diff --git a/monop/prop.c b/monop/prop.c index 73c3152b..0dfc11b8 100644 --- a/monop/prop.c +++ b/monop/prop.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop.c,v 1.14 2008/02/19 09:45:02 dholland Exp $ */ +/* $NetBSD: prop.c,v 1.15 2008/02/20 05:08:46 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prop.c,v 1.14 2008/02/19 09:45:02 dholland Exp $"); +__RCSID("$NetBSD: prop.c,v 1.15 2008/02/20 05:08:46 dholland Exp $"); #endif #endif /* not lint */ @@ -159,8 +159,7 @@ value(sqp) } /* - * This routine accepts bids for the current peice - * of property. + * This routine accepts bids for the current piece of property. */ void bid() @@ -187,8 +186,7 @@ bid() in[i] = FALSE; if (--num_in == 0) break; - } - else if (cur_bid <= cur_max) { + } else if (cur_bid <= cur_max) { printf("You must bid higher than %d " "to stay in\n", cur_max); printf("(bid of 0 drops you out)\n"); |