diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-04-30 16:22:09 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-04-30 16:22:09 +0000 |
commit | 3363a08f8c9ab21234ebf9d2e75155b727270377 (patch) | |
tree | 5795c489adc1945867f5e63934ec4269bf0a80b3 /bin/stty/gfmt.c | |
parent | c1d0c3a89dad2e3e0c07b1349c789bb27f3bc070 (diff) | |
download | src-test2-3363a08f8c9ab21234ebf9d2e75155b727270377.tar.gz src-test2-3363a08f8c9ab21234ebf9d2e75155b727270377.zip |
Notes
Diffstat (limited to 'bin/stty/gfmt.c')
-rw-r--r-- | bin/stty/gfmt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c index 19baf83a8aae..b4087927b11d 100644 --- a/bin/stty/gfmt.c +++ b/bin/stty/gfmt.c @@ -133,8 +133,10 @@ gread(i, s) } if (CHK("drainwait")) { (void)sscanf(ep, "%ld", &tmp); - i->timeout = tmp; - i->tset = 1; + if (i->timeout != tmp) { + i->timeout = tmp; + i->tset = 1; + } continue; } for (cp = cchars1; cp->name != NULL; ++cp) |