summaryrefslogtreecommitdiff
path: root/games/hangman/prman.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1999-09-25 20:51:55 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1999-09-25 20:51:55 +0000
commit98d37025ece07e080f9f43b03d71b4c313dd714b (patch)
tree90b55cdb1f085368276fd724dfa6e04694d3f6c3 /games/hangman/prman.c
parent707fbeced379c66976d1a780f9d53537d5a553e0 (diff)
Merge NetBSD changes (use const where appropriate; allow alternate wordlists).
Add some code beyond that so the game doesn't hang if it gets a badly formatted alternate wordlist.
Diffstat (limited to 'games/hangman/prman.c')
-rw-r--r--games/hangman/prman.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hangman/prman.c b/games/hangman/prman.c
index 5908d6b1a9c..38f9e99693c 100644
--- a/games/hangman/prman.c
+++ b/games/hangman/prman.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: prman.c,v 1.2 1998/08/19 07:40:42 pjanzen Exp $ */
+/* $OpenBSD: prman.c,v 1.3 1999/09/25 20:51:53 pjanzen Exp $ */
/* $NetBSD: prman.c,v 1.3 1995/03/23 08:32:56 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)prman.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: prman.c,v 1.2 1998/08/19 07:40:42 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: prman.c,v 1.3 1999/09/25 20:51:53 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -52,7 +52,7 @@ static char rcsid[] = "$OpenBSD: prman.c,v 1.2 1998/08/19 07:40:42 pjanzen Exp $
void
prman()
{
- register int i;
+ int i;
for (i = 0; i < Errors; i++)
mvaddch(Err_pos[i].y, Err_pos[i].x, Err_pos[i].ch);