diff options
author | ache <ache@FreeBSD.org> | 1995-04-28 19:29:30 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-04-28 19:29:30 +0000 |
commit | 25297a97a83a29dff1405ca8bc86470ddcc0e7de (patch) | |
tree | 9a177679b49c977f9a09f98e40df4206395abb86 /bin/stty/cchar.c | |
parent | ad88165e0d3ff6bec7c5214914a378e777df81a3 (diff) | |
download | FreeBSD-src-25297a97a83a29dff1405ca8bc86470ddcc0e7de.zip FreeBSD-src-25297a97a83a29dff1405ca8bc86470ddcc0e7de.tar.gz |
Fix bugs:
cchars2 not used
can't set or report MIN or TIME == 255
TIOCSETD on wrong fd
PPPDISC is not reported
Diffstat (limited to 'bin/stty/cchar.c')
-rw-r--r-- | bin/stty/cchar.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/bin/stty/cchar.c b/bin/stty/cchar.c index b657d25..ffc680e 100644 --- a/bin/stty/cchar.c +++ b/bin/stty/cchar.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: cchar.c,v 1.2 1994/09/24 02:58:55 davidg Exp $ */ #ifndef lint @@ -106,8 +106,8 @@ csearch(argvp, ip) tmp.name = name; if (!(cp = (struct cchar *)bsearch(&tmp, cchars1, sizeof(cchars1)/sizeof(struct cchar) - 1, sizeof(struct cchar), - c_cchar)) && !(cp = (struct cchar *)bsearch(&tmp, cchars1, - sizeof(cchars1)/sizeof(struct cchar) - 1, sizeof(struct cchar), + c_cchar)) && !(cp = (struct cchar *)bsearch(&tmp, cchars2, + sizeof(cchars2)/sizeof(struct cchar) - 1, sizeof(struct cchar), c_cchar))) return (0); @@ -122,11 +122,6 @@ csearch(argvp, ip) ip->t.c_cc[cp->sub] = _POSIX_VDISABLE; else if (cp->sub == VMIN || cp->sub == VTIME) { val = strtol(arg, &ep, 10); - if (val == _POSIX_VDISABLE) { - warnx("value of %ld would disable the option -- %s", - val, name); - usage(); - } if (val > UCHAR_MAX) { warnx("maximum option value is %d -- %s", UCHAR_MAX, name); |