summaryrefslogtreecommitdiffstats
path: root/games/mille/extern.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-28 21:41:02 +0000
committeralfred <alfred@FreeBSD.org>2002-05-28 21:41:02 +0000
commita1f58961268c7ff96687dafb1c1ee8a549a8a26c (patch)
tree4e49be311e578160f77a3c9a0fe5802d342ad9e2 /games/mille/extern.c
parente13f727e6ba268ec6cde31dfcc44f0677a178a86 (diff)
downloadFreeBSD-src-a1f58961268c7ff96687dafb1c1ee8a549a8a26c.zip
FreeBSD-src-a1f58961268c7ff96687dafb1c1ee8a549a8a26c.tar.gz
Make almost WARNS=5 compliant:
ANSI'fy function declarations. Constify some globals and function paramters. Remove unsused arguments. Fix (rename) shadowed variables.
Diffstat (limited to 'games/mille/extern.c')
-rw-r--r--games/mille/extern.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/games/mille/extern.c b/games/mille/extern.c
index aae29d2de..7eda243 100644
--- a/games/mille/extern.c
+++ b/games/mille/extern.c
@@ -52,10 +52,11 @@ bool Debug, /* set if debugging code on */
Order, /* set if hand should be sorted */
Saved; /* set if game just saved */
-char *C_fmt = "%-18.18s", /* format for printing cards */
- *Fromfile = NULL, /* startup file for game */
- Initstr[100], /* initial string for error field */
- *_cn[NUM_CARDS] = { /* Card name buffer */
+char *Fromfile = NULL, /* startup file for game */
+ Initstr[100]; /* initial string for error field */
+
+const char *C_fmt = "%-18.18s", /* format for printing cards */
+ *_cn[NUM_CARDS] = { /* Card name buffer */
"",
"25",
"50",
@@ -76,8 +77,8 @@ char *C_fmt = "%-18.18s", /* format for printing cards */
"Puncture Proof",
"Driving Ace",
"Right of Way"
- },
- **C_name = &_cn[1]; /* Card names */
+ },
+ **C_name = &_cn[1]; /* Card names */
int Card_no, /* Card number for current move */
End, /* End value for current hand */
OpenPOWER on IntegriCloud