Fix a bit more lint.

This commit is contained in:
dholland 2008-02-24 06:07:06 +00:00
parent c0cbd1abb5
commit 5ec0096cd0
3 changed files with 11 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: monop.h,v 1.17 2008/02/24 03:01:13 dholland Exp $ */
/* $NetBSD: monop.h,v 1.18 2008/02/24 06:07:06 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@ -67,7 +67,7 @@
#define lucky(str) printf("%s%s\n",str,lucky_mes[roll(1,num_luck)-1])
#define printline() printf("------------------------------\n")
#define sqnum(sqp) (sqp - board)
#define sqnum(sqp) ((short)(sqp - board))
struct sqr_st { /* structure for square */
const char *name; /* place name */

View File

@ -1,4 +1,4 @@
/* $NetBSD: morg.c,v 1.17 2008/02/24 02:55:20 dholland Exp $ */
/* $NetBSD: morg.c,v 1.18 2008/02/24 06:07:06 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.17 2008/02/24 02:55:20 dholland Exp $");
__RCSID("$NetBSD: morg.c,v 1.18 2008/02/24 06:07:06 dholland Exp $");
#endif
#endif /* not lint */
@ -201,8 +201,7 @@ set_umlist()
* This routine actually unmortgages the property
*/
static void
unm(propnum)
int propnum;
unm(int propnum)
{
int price;
@ -211,7 +210,7 @@ unm(propnum)
price += price/10;
printf("That cost you $%d\n",price);
cur_p->money -= price;
set_umlist();
(void)set_umlist();
}
/*
@ -219,7 +218,7 @@ unm(propnum)
* financial woes. It is fine to have $0 but not to be in debt.
*/
void
force_morg()
force_morg(void)
{
told_em = fixing = TRUE;
while (cur_p->money < 0) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: roll.c,v 1.12 2008/02/24 02:58:33 dholland Exp $ */
/* $NetBSD: roll.c,v 1.13 2008/02/24 06:07:06 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)roll.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: roll.c,v 1.12 2008/02/24 02:58:33 dholland Exp $");
__RCSID("$NetBSD: roll.c,v 1.13 2008/02/24 06:07:06 dholland Exp $");
#endif
#endif /* not lint */
@ -50,10 +50,10 @@ int
roll(ndie, nsides)
int ndie, nsides;
{
int tot;
long tot;
tot = 0;
while (ndie--)
tot += (random() % nsides) + 1;
return tot;
return (int)tot;
}