From 517497ea9683bb0c3bb9a38d4b7930b325c9db03 Mon Sep 17 00:00:00 2001 From: jsm Date: Fri, 10 Sep 1999 00:16:43 +0000 Subject: Compare getchar() against EOF, not -1. --- atc/graphics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atc/graphics.c') 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); } -- cgit v1.2.3-56-ge451