From: Ben Gras Date: Tue, 11 Oct 2005 17:04:56 +0000 (+0000) Subject: Minor number for pty device nodes computed wrongly X-Git-Tag: v3.1.2a~644 X-Git-Url: http://zhaoyanbai.com/repos/icons/apache_pb.png?a=commitdiff_plain;h=f463c247b6d9cb61c9dc57fd7cb0b6775b617d84;p=minix.git Minor number for pty device nodes computed wrongly --- diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index fb957ab99..b5abd3fd0 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -1526,7 +1526,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; } }