diff options
author | Julian Elischer <julian@FreeBSD.org> | 1999-10-23 04:28:11 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 1999-10-23 04:28:11 +0000 |
commit | b58a8a3b1d5cdaf3b9f89a6ee064a59b1bb84326 (patch) | |
tree | da0a6d48db55b43982988a91a3e4b738558ea7c8 /sys/kern/tty_conf.c | |
parent | 0fe9a7da10f555dd75c1e5647e14b4dfa3c86c4e (diff) | |
download | src-b58a8a3b1d5cdaf3b9f89a6ee064a59b1bb84326.tar.gz src-b58a8a3b1d5cdaf3b9f89a6ee064a59b1bb84326.zip |
Notes
Diffstat (limited to 'sys/kern/tty_conf.c')
-rw-r--r-- | sys/kern/tty_conf.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/tty_conf.c b/sys/kern/tty_conf.c index 43c73be8ac7e..1d41f29d6a2f 100644 --- a/sys/kern/tty_conf.c +++ b/sys/kern/tty_conf.c @@ -47,7 +47,7 @@ #include <sys/conf.h> #ifndef MAXLDISC -#define MAXLDISC 8 +#define MAXLDISC 9 #endif static l_open_t l_noopen; @@ -82,15 +82,16 @@ struct linesw linesw[MAXLDISC] = NODISC(3), /* TABLDISC */ NODISC(4), /* SLIPDISC */ NODISC(5), /* PPPDISC */ - NODISC(6), /* loadable */ + NODISC(6), /* NETGRAPHDISC */ NODISC(7), /* loadable */ + NODISC(8), /* loadable */ }; int nlinesw = sizeof (linesw) / sizeof (linesw[0]); static struct linesw nodisc = NODISC(0); -#define LOADABLE_LDISC 6 +#define LOADABLE_LDISC 7 /* * ldisc_register: Register a line discipline. * @@ -125,7 +126,7 @@ ldisc_register(discipline, linesw_p) /* * ldisc_deregister: Deregister a line discipline obtained with - * ldisc_register. Can only deregister "loadable" ones now. + * ldisc_register. * * discipline: Index for discipline to unload. */ @@ -133,7 +134,7 @@ void ldisc_deregister(discipline) int discipline; { - if (discipline >= LOADABLE_LDISC && discipline < MAXLDISC) { + if (discipline < MAXLDISC) { linesw[discipline] = nodisc; } } |