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/print.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/print.c')
-rw-r--r-- | bin/stty/print.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/stty/print.c b/bin/stty/print.c index 7a694bb..b56fc88 100644 --- a/bin/stty/print.c +++ b/bin/stty/print.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: print.c,v 1.2 1994/09/24 02:58:59 davidg Exp $ */ #ifndef lint @@ -74,6 +74,9 @@ print(tp, wp, ldisc, fmt) case SLIPDISC: cnt += printf("slip disc; "); break; + case PPPDISC: + cnt += printf("ppp disc; "); + break; default: cnt += printf("#%d disc; ", ldisc); break; @@ -240,13 +243,12 @@ ccval(p, c) static char buf[5]; char *bp; - if (c == _POSIX_VDISABLE) - return ("<undef>"); - if (p->sub == VMIN || p->sub == VTIME) { (void)snprintf(buf, sizeof(buf), "%d", c); return (buf); } + if (c == _POSIX_VDISABLE) + return ("<undef>"); bp = buf; if (c & 0200) { *bp++ = 'M'; |