From: Sascha Wildner Date: Thu, 27 Sep 2018 07:53:37 +0000 (+0200) Subject: getty(8): Remove some inactive code (fixes -Wundef). X-Git-Tag: v5.5.0~149 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/d42b6859611d55d55b89a74e830b52cbdf5e0d8c getty(8): Remove some inactive code (fixes -Wundef). --- diff --git a/libexec/getty/main.c b/libexec/getty/main.c index b05e8e97c4..db92e05621 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -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); diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index e0dde385f4..27fb6f001a 100644 --- a/libexec/getty/subr.c +++ b/libexec/getty/subr.c @@ -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