Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/atc Compare getchar() against EOF, not -1.
details: https://anonhg.NetBSD.org/src/rev/ccd4782b7c52
branches: trunk
changeset: 476224:ccd4782b7c52
user: jsm <jsm%NetBSD.org@localhost>
date: Fri Sep 10 00:16:43 1999 +0000
description:
Compare getchar() against EOF, not -1.
diffstat:
games/atc/graphics.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3ca0ea55cd31 -r ccd4782b7c52 games/atc/graphics.c
--- a/games/atc/graphics.c Fri Sep 10 00:06:38 1999 +0000
+++ b/games/atc/graphics.c Fri Sep 10 00:16:43 1999 +0000
@@ -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 @@
int c;
errno = 0;
- while ((c = getchar()) == -1 && errno == EINTR) {
+ while ((c = getchar()) == EOF && errno == EINTR) {
errno = 0;
clearerr(stdin);
}
Home |
Main Index |
Thread Index |
Old Index