diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-28 21:41:02 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-28 21:41:02 +0000 |
commit | a1f58961268c7ff96687dafb1c1ee8a549a8a26c (patch) | |
tree | 4e49be311e578160f77a3c9a0fe5802d342ad9e2 /games/mille/mille.h | |
parent | e13f727e6ba268ec6cde31dfcc44f0677a178a86 (diff) | |
download | FreeBSD-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/mille.h')
-rw-r--r-- | games/mille/mille.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/games/mille/mille.h b/games/mille/mille.h index a7cb7c0..f58d47e 100644 --- a/games/mille/mille.h +++ b/games/mille/mille.h @@ -214,7 +214,8 @@ typedef struct { extern bool Debug, Finished, Next, On_exit, Order, Saved; -extern char *C_fmt, **C_name, *Fromfile, Initstr[]; +extern const char *C_fmt, **C_name; +extern char *Fromfile, Initstr[]; extern int Card_no, End, Handstart, Movetype, Numcards[], Numgos, Numneed[], Numseen[NUM_CARDS], Play, Value[], Window; @@ -239,7 +240,7 @@ bool check_ext(bool); void check_more(void); void die(int); void domove(void); -bool error(char *, ...); +bool error(const char *, ...); #ifdef EXTRAP void extrapolate(PLAY *); #endif @@ -253,7 +254,7 @@ void newscore(void); bool onecard(PLAY *); void prboard(void); void prompt(int); -void prscore(bool); +void prscore(void); char readch(void); bool rest_f(char *); int roll(int, int); @@ -262,7 +263,7 @@ CARD safety(CARD); bool save(void); void shuffle(void); void sort(CARD *); -void varpush(int, int (*)()); +void varpush(int, int (*)(int, void *, size_t)); #ifdef EXTRAP void undoex(void); #endif |