summaryrefslogtreecommitdiffstats
path: root/robots/flush_in.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-12 14:09:55 +0000
committerlukem <lukem@NetBSD.org>1997-10-12 14:09:55 +0000
commita0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1 (patch)
treefd2b88ff5b355622ff28cd9528fb2d026c626a55 /robots/flush_in.c
parenta0041450da452d421fa15f352d533a000c2e7921 (diff)
downloadbsdgames-darwin-a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1.tar.gz
bsdgames-darwin-a0bb5b9abf33dc2d2220eb3bd6e79c964e92a1c1.zip
WARNSify
Diffstat (limited to 'robots/flush_in.c')
-rw-r--r--robots/flush_in.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/robots/flush_in.c b/robots/flush_in.c
index fecc4838..0604f548 100644
--- a/robots/flush_in.c
+++ b/robots/flush_in.c
@@ -1,4 +1,4 @@
-/* $NetBSD: flush_in.c,v 1.4 1995/04/28 23:09:08 mycroft Exp $ */
+/* $NetBSD: flush_in.c,v 1.5 1997/10/12 14:09:56 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -33,21 +33,22 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)flush_in.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: flush_in.c,v 1.4 1995/04/28 23:09:08 mycroft Exp $";
+__RCSID("$NetBSD: flush_in.c,v 1.5 1997/10/12 14:09:56 lukem Exp $");
#endif
#endif /* not lint */
-# include <stdio.h>
-# include <termios.h>
+# include "robots.h"
/*
* flush_in:
* Flush all pending input.
*/
+void
flush_in()
{
tcflush(fileno(stdin), TCIFLUSH);