summaryrefslogtreecommitdiff
path: root/bin/stty/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stty/key.c')
-rw-r--r--bin/stty/key.c10
1 files changed, 5 insertions, 5 deletions
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");
}