diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-04-28 19:29:30 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-04-28 19:29:30 +0000 |
| commit | 0b51c95db29c55fe75f5a544f5bd91551ea2b40b (patch) | |
| tree | 9a177679b49c977f9a09f98e40df4206395abb86 /bin/stty/print.c | |
| parent | 8312577eea0702c5eb54eedc35e336c88b7c94f0 (diff) | |
Notes
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 7a694bbe6f5c..b56fc884e1ce 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'; |
