From a77b3f8edc13dc6efdbcf80e336689cfa1de08ab Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 12 Oct 1997 17:45:06 +0000 Subject: WARNSify --- monop/print.c | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) (limited to 'monop/print.c') diff --git a/monop/print.c b/monop/print.c index eb49d1fc..0b921d77 100644 --- a/monop/print.c +++ b/monop/print.c @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.3 1995/03/23 08:35:05 cgd Exp $ */ +/* $NetBSD: print.c,v 1.4 1997/10/12 17:45:22 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -33,25 +33,29 @@ * SUCH DAMAGE. */ +#include #ifndef lint #if 0 static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: print.c,v 1.3 1995/03/23 08:35:05 cgd Exp $"; +__RCSID("$NetBSD: print.c,v 1.4 1997/10/12 17:45:22 christos Exp $"); #endif #endif /* not lint */ # include "monop.ext" -static char buf[80], /* output buffer */ - *header = "Name Own Price Mg # Rent"; +static char *header = "Name Own Price Mg # Rent"; + +static void printmorg __P((SQUARE *)); /* * This routine prints out the current board */ -printboard() { +void +printboard() +{ - reg int i; + int i; printf("%s\t%s\n", header, header); for (i = 0; i < N_SQRS/2; i++) { @@ -63,10 +67,11 @@ printboard() { /* * This routine lists where each player is. */ -where() { +void +where() +{ - reg int i; - char *bsp; + int i; printf("%s Player\n", header); for (i = 0; i < num_play; i++) { @@ -80,14 +85,15 @@ where() { /* * This routine prints out an individual square */ +void printsq(sqn, eoln) int sqn; -reg bool eoln; { +bool eoln; +{ - reg int rnt; - reg PROP *pp; - reg SQUARE *sqp; - int i; + int rnt; + PROP *pp; + SQUARE *sqp; sqp = &board[sqn]; printf("%-10.10s", sqp->name); @@ -99,7 +105,6 @@ reg bool eoln; { case GOTO_J: case LUX_TAX: case IN_JAIL: -spec: if (!eoln) printf(" "); break; @@ -160,8 +165,10 @@ spec: /* * This routine prints out the mortgage flag. */ +static void printmorg(sqp) -reg SQUARE *sqp; { +SQUARE *sqp; +{ if (sqp->desc->morg) printf(" * "); @@ -171,12 +178,13 @@ reg SQUARE *sqp; { /* * This routine lists the holdings of the player given */ +void printhold(pl) -reg int pl; { +int pl; +{ - reg OWN *op; - reg PLAY *pp; - char *bsp; + OWN *op; + PLAY *pp; pp = &play[pl]; printf("%s's (%d) holdings (Total worth: $%d):\n", name_list[pl], pl+1, -- cgit v1.2.3-56-ge451