From 27f054a7ef51ed1f358e8909c307c1997e458ce8 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 16 Jul 2008 11:20:04 +0000 Subject: Remove OTTYDISC, NETLDISC and NTTYDISC definitions. When I ported most applications away from , I noticed none of them were actually using these definitions. I kept them in place, because I didn't want to touch tools like pstat(8) and stty(1). In preparation for the MPSAFE TTY layer, remove these definitions. This doesn't have any impact with respect to binary compatibility (see tty_conf.c). We couldn now add an #error to when included outside the kernel. Unfortunately, kdump's mkioctls includes this file unconditionally. Approved by: philip (mentor) --- bin/stty/print.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'bin/stty') diff --git a/bin/stty/print.c b/bin/stty/print.c index cf24d4f..30fcbaa 100644 --- a/bin/stty/print.c +++ b/bin/stty/print.c @@ -44,8 +44,6 @@ __FBSDID("$FreeBSD$"); #include "stty.h" #include "extern.h" -#include /* XXX NTTYDISC is too well hidden */ - static void binit(const char *); static void bput(const char *); static const char *ccval(struct cchar *, int); @@ -64,9 +62,6 @@ print(struct termios *tp, struct winsize *wp, int ldisc, enum FMT fmt) /* Line discipline. */ if (ldisc != TTYDISC) { switch(ldisc) { - case NTTYDISC: - cnt += printf("new tty disc; "); - break; case SLIPDISC: cnt += printf("slip disc; "); break; -- cgit v1.1