]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/tty_conf.c
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / kern / tty_conf.c
index 44f6b12d5ca942f731cba53bdddb595879decbf5..b72d464d2ddd80d35dd424242a9cb89bfb1b05cb 100644 (file)
@@ -100,12 +100,8 @@ struct     linesw linesw[MAXLDISC] =
          l_noioctl,    ttyinput,       ttwwakeup,      ttymodem },
        NODISC(1),              /* 1- defunct */
                                /* 2- NTTYDISC */
-#if COMPAT_43_TTY
        { ttyopen,      ttylclose,      ttread,         ttwrite,
          l_noioctl,    ttyinput,       ttwwakeup,      ttymodem },
-#else
-       NODISC(2),
-#endif
        NODISC(3),              /* TABLDISC */
        NODISC(4),              /* SLIPDISC */
        NODISC(5),              /* PPPDISC */
@@ -113,7 +109,7 @@ struct      linesw linesw[MAXLDISC] =
        NODISC(7),              /* loadable */
 };
 
-int    nlinesw = sizeof (linesw) / sizeof (linesw[0]);
+const int nlinesw = sizeof (linesw) / sizeof (linesw[0]);
 
 static struct linesw nodisc = NODISC(0);