From 914de4f458c19fecdd27a0067edb3225527edb24 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 7 May 1999 18:29:08 +0000 Subject: repair TIOCFLUSH use; alaric@MIT.EDU --- usr.bin/telnet/sys_bsd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/telnet/sys_bsd.c') diff --git a/usr.bin/telnet/sys_bsd.c b/usr.bin/telnet/sys_bsd.c index 1e2f6331377..e10977c729f 100644 --- a/usr.bin/telnet/sys_bsd.c +++ b/usr.bin/telnet/sys_bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_bsd.c,v 1.6 1998/12/28 11:13:51 deraadt Exp $ */ +/* $OpenBSD: sys_bsd.c,v 1.7 1999/05/07 18:29:07 deraadt Exp $ */ /* $NetBSD: sys_bsd.c,v 1.11 1996/02/28 21:04:10 thorpej Exp $ */ /* @@ -199,9 +199,10 @@ TerminalSpecialChars(c) TerminalFlushOutput() { #ifdef TIOCFLUSH - (void) ioctl(fileno(stdout), TIOCFLUSH, (char *) 0); + int com = FWRITE; + (void) ioctl(fileno(stdout), TIOCFLUSH, (int *) &com); #else - (void) ioctl(fileno(stdout), TCFLSH, (char *) 0); + (void) ioctl(fileno(stdout), TCFLSH, (int *) 0); #endif } -- cgit v1.2.3