summaryrefslogtreecommitdiff
path: root/usr.bin/telnet/sys_bsd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-05-07 18:29:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-05-07 18:29:08 +0000
commit914de4f458c19fecdd27a0067edb3225527edb24 (patch)
treee3f654c4d8aeb25c93d3b2139f26ccade446518a /usr.bin/telnet/sys_bsd.c
parenta24ac8ffe90ed7a1e0c5d0b90757739653b12a38 (diff)
repair TIOCFLUSH use; alaric@MIT.EDU
Diffstat (limited to 'usr.bin/telnet/sys_bsd.c')
-rw-r--r--usr.bin/telnet/sys_bsd.c7
1 files changed, 4 insertions, 3 deletions
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
}