From: Ben Gras Date: Tue, 11 Oct 2005 17:05:43 +0000 (+0000) Subject: Minor number for pty nodes computed wrongly X-Git-Url: http://zhaoyanbai.com/repos/dnssec-verify.html?a=commitdiff_plain;h=12c79e53f16377cbc20862896fe6f054fd0aef16;p=minix.git Minor number for pty nodes computed wrongly --- diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index bf9fc56b2..f76c021f1 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -1516,7 +1516,7 @@ PRIVATE void tty_init() tp->tty_minor = RS232_MINOR + s-NR_CONS; } else { pty_init(tp); - tp->tty_minor = s + TTYPX_MINOR + s-(NR_CONS+RS232_MINOR); + tp->tty_minor = s - (NR_CONS+NR_RS_LINES) + TTYPX_MINOR; } }