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

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