]> Zhao Yanbai Git Server - minix.git/commitdiff
Minor number for pty nodes computed wrongly
authorBen Gras <ben@minix3.org>
Tue, 11 Oct 2005 17:05:43 +0000 (17:05 +0000)
committerBen Gras <ben@minix3.org>
Tue, 11 Oct 2005 17:05:43 +0000 (17:05 +0000)
drivers/tty/tty.c

index bf9fc56b26162ab5930fbb596ed2a58ebffca2c3..f76c021f13d7ee37ba9933b88cd80a156fd1589f 100644 (file)
@@ -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;
        }
   }