summaryrefslogtreecommitdiff
path: root/games/hangman/getguess.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-13 02:33:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-13 02:33:10 +0000
commit1aa7b0eba47e9452ea6454af501b33b70e05d060 (patch)
tree046eecb5edae4ab0d192fb5297f35203fc8b44ed /games/hangman/getguess.c
parent8b7d13b0e05b4a89823fc6e4ea4e6043f9540c72 (diff)
use STD{IN,OUT,ERR}_FILENO
Diffstat (limited to 'games/hangman/getguess.c')
-rw-r--r--games/hangman/getguess.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/hangman/getguess.c b/games/hangman/getguess.c
index 047a8e2b264..c37970a8737 100644
--- a/games/hangman/getguess.c
+++ b/games/hangman/getguess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getguess.c,v 1.6 2004/11/29 08:52:28 jsg Exp $ */
+/* $OpenBSD: getguess.c,v 1.7 2005/04/13 02:33:07 deraadt Exp $ */
/* $NetBSD: getguess.c,v 1.5 1995/03/23 08:32:43 cgd Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)getguess.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: getguess.c,v 1.6 2004/11/29 08:52:28 jsg Exp $";
+static char rcsid[] = "$OpenBSD: getguess.c,v 1.7 2005/04/13 02:33:07 deraadt Exp $";
#endif
#endif /* not lint */
@@ -99,7 +99,7 @@ readch(void)
cnt = 0;
for (;;) {
- if (read(0, &ch, sizeof ch) <= 0) {
+ if (read(STDIN_FILENO, &ch, sizeof ch) <= 0) {
if (++cnt > 100)
die(0);
} else