summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-09-10 00:16:43 +0000
committerjsm <jsm@NetBSD.org>1999-09-10 00:16:43 +0000
commit517497ea9683bb0c3bb9a38d4b7930b325c9db03 (patch)
tree382bb31278061ba78b1773c8f0ab9ebe6d94f055 /atc
parent7c83c10b63040efab0f282a2fad4c9a582ec8d05 (diff)
downloadbsdgames-darwin-517497ea9683bb0c3bb9a38d4b7930b325c9db03.tar.gz
bsdgames-darwin-517497ea9683bb0c3bb9a38d4b7930b325c9db03.tar.zst
bsdgames-darwin-517497ea9683bb0c3bb9a38d4b7930b325c9db03.zip
Compare getchar() against EOF, not -1.
Diffstat (limited to 'atc')
-rw-r--r--atc/graphics.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/graphics.c b/atc/graphics.c
index 839f2c08..d60a99b8 100644
--- a/atc/graphics.c
+++ b/atc/graphics.c
@@ -1,4 +1,4 @@
-/* $NetBSD: graphics.c,v 1.8 1999/07/28 02:01:30 hubertf Exp $ */
+/* $NetBSD: graphics.c,v 1.9 1999/09/10 00:16:43 jsm Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: graphics.c,v 1.8 1999/07/28 02:01:30 hubertf Exp $");
+__RCSID("$NetBSD: graphics.c,v 1.9 1999/09/10 00:16:43 jsm Exp $");
#endif
#endif /* not lint */
@@ -72,7 +72,7 @@ getAChar()
int c;
errno = 0;
- while ((c = getchar()) == -1 && errno == EINTR) {
+ while ((c = getchar()) == EOF && errno == EINTR) {
errno = 0;
clearerr(stdin);
}