diff options
author | ache <ache@FreeBSD.org> | 1996-05-07 16:42:26 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-05-07 16:42:26 +0000 |
commit | 8b3843844bb2a5f49806ae9865478056563666d2 (patch) | |
tree | 8e00645373a0d635af8526ea382a63cb18e59b6b /libexec/getty | |
parent | 1dfa9eae430f7b1471e62beba96fd3b31913047a (diff) | |
download | FreeBSD-src-8b3843844bb2a5f49806ae9865478056563666d2.zip FreeBSD-src-8b3843844bb2a5f49806ae9865478056563666d2.tar.gz |
Replace non-POSIX speed setting by POSIX one
Diffstat (limited to 'libexec/getty')
-rw-r--r-- | libexec/getty/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c index 03ae7bb..3edf338 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/ -static char rcsid[] = "$Id: main.c,v 1.1.1.2 1996/04/13 15:33:11 joerg Exp $"; +static char rcsid[] = "$Id: main.c,v 1.9 1996/05/05 19:01:10 joerg Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -284,7 +284,8 @@ main(argc, argv) if (IM && *IM) putf(IM); if (setjmp(timeout)) { - tmode.c_ispeed = tmode.c_ospeed = 0; + cfsetispeed(&tmode, B0); + cfsetospeed(&tmode, B0); (void)tcsetattr(0, TCSANOW, &tmode); exit(1); } |