#984612 term.c: Patch "term.c: various changes", remove part of it

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-05 20:48:04 UTC
Severity:
normal
Tags:
#984612#5
Date:
2021-03-05 20:45:46 UTC
From:
To:
Dear Maintainer,

  term.c:

  Remove 'Add code instead of "cfmakeraw()" depending of the definition
of "__osf__".'

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 term.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/term.c b/term.c
index e15eb66..088c9f5 100644
--- a/term.c
+++ b/term.c
@@ -674,16 +674,6 @@ init_term(int full)
 #ifdef HAVE_TERMIOS_H
 #  ifdef __osf__
     cfmakeraw(&raw_tty);
-#  else /* same as for HAVE_TERMIO_H */
-    raw_tty.c_iflag &= ~(BRKINT | INLCR | ICRNL | IGNCR | ISTRIP);
-    raw_tty.c_iflag |= IGNBRK | IGNPAR;
-    raw_tty.c_oflag &= ~OPOST;
-    raw_tty.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | NOFLSH);
-
-    /* read a maximum of 10 characters in one burst; timeout in 1-200 ms */
-    raw_tty.c_cc[VMIN] = KEY_BURST;
-    raw_tty.c_cc[VTIME] = ((int) (raw_tty.c_cflag & CBAUD) > B1200) ? 1 : 2;
-    set_term_speed((unsigned long) (raw_tty.c_cflag & CBAUD));
 #  endif

     /* read a maximum of 10 characters in one burst; timeout in 1-200 ms */