From 7d06988813ff6db20785ea960ee60f0f4b2c6c59 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 2 Aug 1996 12:10:22 +0000 Subject: ioctl ip->fd, not 0, doh --- bin/stty/key.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/stty/key.c b/bin/stty/key.c index f6f05988c8f..1ab7f305fbc 100644 --- a/bin/stty/key.c +++ b/bin/stty/key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: key.c,v 1.3 1996/06/23 14:21:51 deraadt Exp $ */ +/* $OpenBSD: key.c,v 1.4 1996/08/02 12:10:21 deraadt Exp $ */ /* $NetBSD: key.c,v 1.11 1995/09/07 06:57:11 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)key.c 8.4 (Berkeley) 2/20/95"; #else -static char rcsid[] = "$OpenBSD: key.c,v 1.3 1996/06/23 14:21:51 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: key.c,v 1.4 1996/08/02 12:10:21 deraadt Exp $"; #endif #endif /* not lint */ @@ -306,7 +306,7 @@ f_tty(ip) int tmp; tmp = TTYDISC; - if (ioctl(0, TIOCSETD, &tmp) < 0) + if (ioctl(ip->fd, TIOCSETD, &tmp) < 0) err(1, "TIOCSETD"); } @@ -314,7 +314,7 @@ void f_ostart(ip) struct info *ip; { - if (ioctl (0, TIOCSTART) < 0) + if (ioctl (ip->fd, TIOCSTART) < 0) err(1, "TIOCSTART"); } @@ -322,6 +322,6 @@ void f_ostop(ip) struct info *ip; { - if (ioctl (0, TIOCSTOP) < 0) + if (ioctl (ip->fd, TIOCSTOP) < 0) err(1, "TIOCSTOP"); } -- cgit v1.2.3