summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-04-28 22:28:48 +0000
committermycroft <mycroft@NetBSD.org>1995-04-28 22:28:48 +0000
commit4bcf6f69bae8f6f73026d095d7f74903eda2c42c (patch)
tree6d7f82082a4146c63bd6e791dba5ca978f641446 /boggle
parentb964c1a1ab288ba8850526062ae07b7cbae63403 (diff)
downloadbsdgames-darwin-4bcf6f69bae8f6f73026d095d7f74903eda2c42c.tar.gz
bsdgames-darwin-4bcf6f69bae8f6f73026d095d7f74903eda2c42c.tar.zst
bsdgames-darwin-4bcf6f69bae8f6f73026d095d7f74903eda2c42c.zip
Use tcflush().
Diffstat (limited to 'boggle')
-rw-r--r--boggle/boggle/mach.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/boggle/boggle/mach.c b/boggle/boggle/mach.c
index a47b5213..73c919c6 100644
--- a/boggle/boggle/mach.c
+++ b/boggle/boggle/mach.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mach.c,v 1.4 1995/04/27 22:06:04 mycroft Exp $ */
+/* $NetBSD: mach.c,v 1.5 1995/04/28 22:28:48 mycroft Exp $ */
/*-
* Copyright (c) 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)mach.c 8.1 (Berkeley) 6/11/93";
#else
-static char rcsid[] = "$NetBSD: mach.c,v 1.4 1995/04/27 22:06:04 mycroft Exp $";
+static char rcsid[] = "$NetBSD: mach.c,v 1.5 1995/04/28 22:28:48 mycroft Exp $";
#endif
#endif /* not lint */
@@ -52,11 +52,11 @@ static char rcsid[] = "$NetBSD: mach.c,v 1.4 1995/04/27 22:06:04 mycroft Exp $";
#include <ctype.h>
#include <curses.h>
#include <fcntl.h>
-#include <sgtty.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <termios.h>
#include <time.h>
#include "bog.h"
@@ -278,10 +278,8 @@ void
flushin(fp)
FILE *fp;
{
- int arg;
- arg = FREAD;
- (void)ioctl(fileno(fp), TIOCFLUSH, &arg);
+ (void) tcflush(fileno(fp), TCIFLUSH);
}
static int gone;