diff options
author | bde <bde@FreeBSD.org> | 1995-07-21 22:52:01 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-07-21 22:52:01 +0000 |
commit | 94cb7648d61aaab09b106f4dfb5fcd1e8c6c3cfc (patch) | |
tree | e4be4e1778a8e58f2a9891e880360c12d7ebaa9a /sys/dev/cy | |
parent | fb20709ee5835b6c531ad29810bb232d88e3c761 (diff) | |
download | FreeBSD-src-94cb7648d61aaab09b106f4dfb5fcd1e8c6c3cfc.zip FreeBSD-src-94cb7648d61aaab09b106f4dfb5fcd1e8c6c3cfc.tar.gz |
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[].
Diffstat (limited to 'sys/dev/cy')
-rw-r--r-- | sys/dev/cy/cy.c | 12 | ||||
-rw-r--r-- | sys/dev/cy/cy_isa.c | 12 |
2 files changed, 2 insertions, 22 deletions
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 <sys/systm.h> #include <sys/reboot.h> #include <sys/ioctl.h> -#define TTYDEFCHARS /* XXX TK2.0 */ #include <sys/tty.h> -#undef TTYDEFCHARS #include <sys/proc.h> #include <sys/user.h> #include <sys/conf.h> @@ -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 <sys/systm.h> #include <sys/reboot.h> #include <sys/ioctl.h> -#define TTYDEFCHARS /* XXX TK2.0 */ #include <sys/tty.h> -#undef TTYDEFCHARS #include <sys/proc.h> #include <sys/user.h> #include <sys/conf.h> @@ -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) |