getty(8): Remove some inactive code (fixes -Wundef).
authorSascha Wildner <saw@online.de>
Thu, 27 Sep 2018 07:53:37 +0000 (09:53 +0200)
committerSascha Wildner <saw@online.de>
Thu, 27 Sep 2018 07:53:37 +0000 (09:53 +0200)
libexec/getty/main.c
libexec/getty/subr.c

index b05e8e9..db92e05 100644 (file)
@@ -380,12 +380,6 @@ main(int argc, char *argv[])
                                tmode.c_iflag |= ICRNL;
                                tmode.c_oflag |= ONLCR;
                        }
-#if REALLY_OLD_TTYS
-                       if (upper || UC)
-                               tmode.sg_flags |= LCASE;
-                       if (lower || LC)
-                               tmode.sg_flags &= ~LCASE;
-#endif
                        if (tcsetattr(STDIN_FILENO, TCSANOW, &tmode) < 0) {
                                syslog(LOG_ERR, "tcsetattr %s: %m", ttyn);
                                exit(1);
index e0dde38..27fb6f0 100644 (file)
@@ -293,11 +293,6 @@ set_flags(int n)
                }
        } /* else, leave as is */
 
-#if 0
-       if (UC)
-               f |= LCASE;
-#endif
-
        if (HC)
                SET(cflag, HUPCL);
        else