diff options
author | dholland <dholland@NetBSD.org> | 2008-01-28 05:38:53 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-01-28 05:38:53 +0000 |
commit | e30950ccc7c7c31c69f1d31c16b0212bbf168ceb (patch) | |
tree | 2db2120a69bedac57d95d284e878f9975b6a17ed /larn/store.c | |
parent | 9005237a04850abb22afe099ef07649b4115ed3f (diff) | |
download | bsdgames-darwin-e30950ccc7c7c31c69f1d31c16b0212bbf168ceb.tar.gz bsdgames-darwin-e30950ccc7c7c31c69f1d31c16b0212bbf168ceb.tar.zst bsdgames-darwin-e30950ccc7c7c31c69f1d31c16b0212bbf168ceb.zip |
Larn now builds with WARNS=4.
Diffstat (limited to 'larn/store.c')
-rw-r--r-- | larn/store.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/larn/store.c b/larn/store.c index c598cd39..a3c6abf9 100644 --- a/larn/store.c +++ b/larn/store.c @@ -1,4 +1,4 @@ -/* $NetBSD: store.c,v 1.11 2008/01/28 03:39:31 dholland Exp $ */ +/* $NetBSD: store.c,v 1.12 2008/01/28 05:38:54 dholland Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)store.c 5.4 (Berkeley) 5/13/91"; #else -__RCSID("$NetBSD: store.c,v 1.11 2008/01/28 03:39:31 dholland Exp $"); +__RCSID("$NetBSD: store.c,v 1.12 2008/01/28 05:38:54 dholland Exp $"); #endif #endif /* not lint */ @@ -46,7 +46,7 @@ static void handsfull(void); static void outofstock(void); static void nogold(void); static void dnditem(int); -static void banktitle(char *); +static void banktitle(const char *); static void otradhead(void); static int dndcount = 0, dnditm = 0; @@ -520,9 +520,9 @@ obank2() { banktitle("Welcome to the 5th level branch office of the First National Bank of Larn."); } + static void -banktitle(str) - char *str; +banktitle(const char *str) { nosignal = 1; /* disable signals */ clear(); @@ -577,7 +577,7 @@ static long gemvalue[26] = {0}; /* the appraisal of the gems */ void obanksub() { - unsigned long amt; + long amt; int i, k; ointerest(); /* credit any needed interest */ @@ -850,7 +850,7 @@ void olrs() { int i, first; - unsigned long amt; + long amt; first = nosignal = 1; /* disable signals */ clear(); resetscroll(); @@ -881,7 +881,7 @@ olrs() } else if (amt > c[GOLD]) lprcat(" You don't have that much.\n"); else - c[GOLD] -= paytaxes((long) amt); + c[GOLD] -= paytaxes(amt); break; case '\33': |