X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/55c4a511be47d16c259623bf0f76ddd0df0a42ac..13b5b0009082f9bc2c991c326ca650178761bdff:/robots/flush_in.c diff --git a/robots/flush_in.c b/robots/flush_in.c index efe088d2..fecc4838 100644 --- 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 @@ -37,11 +37,12 @@ #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 */ -# include +# include +# include /* * 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() { -# ifdef TIOCFLUSH - ioctl(fileno(stdin), TIOCFLUSH, NULL); -# else TIOCFLUSH - crmode(); -# endif TIOCFLUSH + tcflush(fileno(stdin), TCIFLUSH); }