git.ckatri.com
/
bsdgames-darwin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import of 4.4BSD-Lite2 source
[bsdgames-darwin.git]
/
robots
/
flush_in.c
diff --git
a/robots/flush_in.c
b/robots/flush_in.c
index efe088d29be88f69463ead0e76de7e316d60f1da..fecc483858b24e5f455f6e7c105ee22c8c1a64bd 100644
(file)
--- a/
robots/flush_in.c
+++ b/
robots/flush_in.c
@@
-1,4
+1,4
@@
-/* $NetBSD: flush_in.c,v 1.
3 1995/04/22 10:08:51 cgd Exp $
*/
+/* $NetBSD: flush_in.c,v 1.
4 1995/04/28 23:09:08 mycroft Exp $
*/
/*
* Copyright (c) 1980, 1993
/*
* Copyright (c) 1980, 1993
@@
-37,11
+37,12
@@
#if 0
static char sccsid[] = "@(#)flush_in.c 8.1 (Berkeley) 5/31/93";
#else
#if 0
static char sccsid[] = "@(#)flush_in.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: flush_in.c,v 1.
3 1995/04/22 10:08:51 cgd
Exp $";
+static char rcsid[] = "$NetBSD: flush_in.c,v 1.
4 1995/04/28 23:09:08 mycroft
Exp $";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
-# include <curses.h>
+# include <stdio.h>
+# include <termios.h>
/*
* flush_in:
/*
* flush_in:
@@
-49,9
+50,5
@@
static char rcsid[] = "$NetBSD: flush_in.c,v 1.3 1995/04/22 10:08:51 cgd Exp $";
*/
flush_in()
{
*/
flush_in()
{
-# ifdef TIOCFLUSH
- ioctl(fileno(stdin), TIOCFLUSH, NULL);
-# else TIOCFLUSH
- crmode();
-# endif TIOCFLUSH
+ tcflush(fileno(stdin), TCIFLUSH);
}
}