X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/47c4a13aeb96fe1fe49bddec4fb90e77c81cf366..98dc6b82209d86036b45b7c5922f7df21a96d2cf:/atc/graphics.c diff --git a/atc/graphics.c b/atc/graphics.c index e7f64398..d60a99b8 100644 --- a/atc/graphics.c +++ b/atc/graphics.c @@ -1,4 +1,4 @@ -/* $NetBSD: graphics.c,v 1.6 1999/07/24 23:58:15 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.6 1999/07/24 23:58:15 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 @@ -297,7 +296,7 @@ ioerror(pos, len, str) void quit(dummy) - int dummy; + int dummy __attribute__((__unused__)); { int c, y, x; #ifdef BSD