diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-05-10 08:53:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-05-10 08:53:13 +0000 |
commit | 65ec8015ed7c028e8a29eca6533e8f396d2f3372 (patch) | |
tree | 9bfadfab20af8300b23ee46fa22e242cc8c5f21a /games/monop | |
parent | e4dc71b9fd4a33715b07f881315d244cf5790dce (diff) |
Rename use of some builtins that makes gcc4 warn.
ok millert
Diffstat (limited to 'games/monop')
-rw-r--r-- | games/monop/misc.c | 4 | ||||
-rw-r--r-- | games/monop/monop.def | 4 | ||||
-rw-r--r-- | games/monop/monop.ext | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/games/monop/misc.c b/games/monop/misc.c index 1fc01e0ec19..67c5094bfef 100644 --- a/games/monop/misc.c +++ b/games/monop/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.10 2009/10/27 23:59:26 deraadt Exp $ */ +/* $OpenBSD: misc.c,v 1.11 2010/05/10 08:53:12 nicm Exp $ */ /* $NetBSD: misc.c,v 1.4 1995/03/23 08:34:47 cgd Exp $ */ /* @@ -45,7 +45,7 @@ getyn(prompt) int com; for (;;) - if ((com=getinp(prompt, yn)) < 2) + if ((com=getinp(prompt, ynlist)) < 2) return com; else (*func[com-2])(); diff --git a/games/monop/monop.def b/games/monop/monop.def index 52d1f206637..881958fa9c6 100644 --- a/games/monop/monop.def +++ b/games/monop/monop.def @@ -1,4 +1,4 @@ -/* $OpenBSD: monop.def,v 1.5 2003/06/03 03:01:40 millert Exp $ */ +/* $OpenBSD: monop.def,v 1.6 2010/05/10 08:53:12 nicm Exp $ */ /* $NetBSD: monop.def,v 1.3 1995/03/23 08:34:54 cgd Exp $ */ /*- @@ -53,7 +53,7 @@ char *name_list[MAX_PL+2], /* list of players' names */ "", /* 16 */ 0 }, - *yn[] = { /* list of commands for yes/no answers */ + *ynlist[] = { /* list of commands for yes/no answers */ "yes", /* 0 */ "no", /* 1 */ "quit", /* 2 */ "print", /* 3 */ "where", /* 4 */ "own holdings", /* 5 */ diff --git a/games/monop/monop.ext b/games/monop/monop.ext index fb7d4e32010..e8cb3edabf2 100644 --- a/games/monop/monop.ext +++ b/games/monop/monop.ext @@ -1,4 +1,4 @@ -/* $OpenBSD: monop.ext,v 1.3 2003/06/03 03:01:40 millert Exp $ */ +/* $OpenBSD: monop.ext,v 1.4 2010/05/10 08:53:12 nicm Exp $ */ /* $NetBSD: monop.ext,v 1.2 1995/03/23 08:34:58 cgd Exp $ */ /*- @@ -37,7 +37,7 @@ extern bool trading, spec, fixing, told_em; -extern char *yn[], *comlist[], *name_list[], *lucky_mes[]; +extern char *ynlist[], *comlist[], *name_list[], *lucky_mes[]; extern int num_play, player, num_doub, num_luck, (*func[])(); |