From 94cb7648d61aaab09b106f4dfb5fcd1e8c6c3cfc Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 21 Jul 1995 22:52:01 +0000 Subject: Obtained from: partly from ancient patches of mine via 1.1.5 Move static termioschars() from a couple of drivers to tty.c. Now there is only one copy of ttydefchars[]. --- sys/dev/cy/cy.c | 12 +----------- sys/dev/cy/cy_isa.c | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) (limited to 'sys/dev/cy') diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c index 81f7022..090901f 100644 --- a/sys/dev/cy/cy.c +++ b/sys/dev/cy/cy.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.7 1995/05/30 08:01:34 rgrimes Exp $ + * $Id: cy.c,v 1.8 1995/07/05 12:15:52 bde Exp $ */ #include "cy.h" @@ -75,9 +75,7 @@ #include #include #include -#define TTYDEFCHARS /* XXX TK2.0 */ #include -#undef TTYDEFCHARS #include #include #include @@ -159,14 +157,6 @@ #define TSA_CARR_ON(tp) ((void *)&(tp)->t_rawq) #define TSA_OCOMPLETE(tp) ((void *)&(tp)->t_outq) #define TSA_OLOWAT(tp) ((void *)&(tp)->t_outq) -static void termioschars __P((struct termios *t)); -static void -termioschars(t) - struct termios *t; -{ - - bcopy(ttydefchars, t->c_cc, sizeof t->c_cc); -} #define LOTS_OF_EVENTS 64 /* helps separate urgent events from input */ #define RB_I_HIGH_WATER (TTYHOG - 2 * RS_IBUFSIZE) diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c index 81f7022..090901f 100644 --- a/sys/dev/cy/cy_isa.c +++ b/sys/dev/cy/cy_isa.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: cy.c,v 1.7 1995/05/30 08:01:34 rgrimes Exp $ + * $Id: cy.c,v 1.8 1995/07/05 12:15:52 bde Exp $ */ #include "cy.h" @@ -75,9 +75,7 @@ #include #include #include -#define TTYDEFCHARS /* XXX TK2.0 */ #include -#undef TTYDEFCHARS #include #include #include @@ -159,14 +157,6 @@ #define TSA_CARR_ON(tp) ((void *)&(tp)->t_rawq) #define TSA_OCOMPLETE(tp) ((void *)&(tp)->t_outq) #define TSA_OLOWAT(tp) ((void *)&(tp)->t_outq) -static void termioschars __P((struct termios *t)); -static void -termioschars(t) - struct termios *t; -{ - - bcopy(ttydefchars, t->c_cc, sizeof t->c_cc); -} #define LOTS_OF_EVENTS 64 /* helps separate urgent events from input */ #define RB_I_HIGH_WATER (TTYHOG - 2 * RS_IBUFSIZE) -- cgit v1.1