summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2008-06-12 03:52:49 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2008-06-12 03:52:49 +0000
commitbe56c6aad7ae21ff6c3fa6c0761ca54360a54143 (patch)
tree8406d2c5cb05821294c32cea2bb62ccf6344d03a
parentbbfd157de560c4048f3286118986e4c0a84940c1 (diff)
Initialize the tty in the same way for nmea and slip.
-rw-r--r--sbin/ldattach/ldattach.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/ldattach/ldattach.c b/sbin/ldattach/ldattach.c
index 79d1ff747fa..69fa88fe105 100644
--- a/sbin/ldattach/ldattach.c
+++ b/sbin/ldattach/ldattach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldattach.c,v 1.10 2008/06/11 23:12:15 mbalmer Exp $ */
+/* $OpenBSD: ldattach.c,v 1.11 2008/06/12 03:52:48 mbalmer Exp $ */
/*
* Copyright (c) 2007, 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -274,11 +274,7 @@ main(int argc, char *argv[])
warnx("TIOCSTSTAMP");
goto bail_out;
}
- /* tty.c_cc[VMIN] = tty.c_cc[VTIME] = 0; */
- tty.c_iflag = 0;
- tty.c_lflag = 0;
- tty.c_oflag = 0;
- break;
+ /* FALLTHROUGH */
case SLIPDISC:
tty.c_iflag = 0;
tty.c_lflag = 0;