diff options
author | phk <phk@FreeBSD.org> | 2004-06-12 12:31:42 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-12 12:31:42 +0000 |
commit | ad8388ad62dec33a4bf8116aaf62c2f3fe1b5505 (patch) | |
tree | c6bf315a5ca2bdfed54c05d704c49418d84d7877 /sys/kern | |
parent | 6e3a7b34cba131e25389007675c3fa180d4bf03e (diff) | |
download | FreeBSD-src-ad8388ad62dec33a4bf8116aaf62c2f3fe1b5505.zip FreeBSD-src-ad8388ad62dec33a4bf8116aaf62c2f3fe1b5505.tar.gz |
Fix registration of loadable line disciplines.
This should make watch(8)/snp(4) work again.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty_conf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty_conf.c b/sys/kern/tty_conf.c index 7a52c50..827fe42 100644 --- a/sys/kern/tty_conf.c +++ b/sys/kern/tty_conf.c @@ -122,8 +122,9 @@ ldisc_register(int discipline, struct linesw *linesw_p) if (discipline == LDISC_LOAD) { int i; for (i = LOADABLE_LDISC; i < MAXLDISC; i++) - if (bcmp(linesw + i, &nodisc, sizeof(nodisc)) == 0) { + if (linesw[i] == &nodisc) { slot = i; + break; } } else if (discipline >= 0 && discipline < MAXLDISC) { slot = discipline; |