X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/da5bab8233f2698f91a021aa951723a66fda731c..98dc6b82209d86036b45b7c5922f7df21a96d2cf:/atc/graphics.c diff --git a/atc/graphics.c b/atc/graphics.c index 693e0ae9..d60a99b8 100644 --- a/atc/graphics.c +++ b/atc/graphics.c @@ -1,4 +1,4 @@ -/* $NetBSD: graphics.c,v 1.7 1999/07/25 00:24:38 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.7 1999/07/25 00:24:38 hubertf Exp $"); +__RCSID("$NetBSD: graphics.c,v 1.9 1999/09/10 00:16:43 jsm Exp $"); #endif #endif /* not lint */ @@ -69,15 +69,14 @@ WINDOW *radar, *cleanradar, *credit, *input, *planes; int getAChar() { -#ifdef BSD - return (getchar()); -#endif -#ifdef SYSV int c; - while ((c = getchar()) == -1 && errno == EINTR) ; + errno = 0; + while ((c = getchar()) == EOF && errno == EINTR) { + errno = 0; + clearerr(stdin); + } return(c); -#endif } void