summaryrefslogtreecommitdiffstats
path: root/monop/morg.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-01-28 06:16:13 +0000
committerdholland <dholland@NetBSD.org>2008-01-28 06:16:13 +0000
commitd9e06af0170971fa7c14eddc67a9b07fafea7dde (patch)
tree77227527f3289a28b25db878cc4a60f370321adb /monop/morg.c
parent41058b6ea0386b49a8c5d57d215a75e6230d9cab (diff)
downloadbsdgames-darwin-d9e06af0170971fa7c14eddc67a9b07fafea7dde.tar.gz
bsdgames-darwin-d9e06af0170971fa7c14eddc67a9b07fafea7dde.tar.zst
bsdgames-darwin-d9e06af0170971fa7c14eddc67a9b07fafea7dde.zip
Make this build with WARNS=4.
Diffstat (limited to 'monop/morg.c')
-rw-r--r--monop/morg.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/monop/morg.c b/monop/morg.c
index 4b8e69f6..c9873f42 100644
--- a/monop/morg.c
+++ b/monop/morg.c
@@ -1,4 +1,4 @@
-/* $NetBSD: morg.c,v 1.10 2004/01/27 20:30:30 jsm Exp $ */
+/* $NetBSD: morg.c,v 1.11 2008/01/28 06:16:13 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.10 2004/01/27 20:30:30 jsm Exp $");
+__RCSID("$NetBSD: morg.c,v 1.11 2008/01/28 06:16:13 dholland Exp $");
#endif
#endif /* not lint */
@@ -83,7 +83,8 @@ static void fix_ex(int);
void
mortgage()
{
- int prop;
+#define prop __suk
+ int propnum;
for (;;) {
if (set_mlist() == 0) {
@@ -102,10 +103,11 @@ mortgage()
m(square[0]);
return;
}
- prop = getinp("Which property do you want to mortgage? ",names);
- if (prop == num_good)
+ propnum = getinp("Which property do you want to mortgage? ",
+ names);
+ if (propnum == num_good)
return;
- m(square[prop]);
+ m(square[propnum]);
notify();
}
}