From 25297a97a83a29dff1405ca8bc86470ddcc0e7de Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 28 Apr 1995 19:29:30 +0000 Subject: Fix bugs: cchars2 not used can't set or report MIN or TIME == 255 TIOCSETD on wrong fd PPPDISC is not reported --- bin/stty/print.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bin/stty/print.c') 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 (""); - if (p->sub == VMIN || p->sub == VTIME) { (void)snprintf(buf, sizeof(buf), "%d", c); return (buf); } + if (c == _POSIX_VDISABLE) + return (""); bp = buf; if (c & 0200) { *bp++ = 'M'; -- cgit v1.1