From 172903b508e03ff5ab2094aa53bff9706375114c Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Jul 2017 21:36:25 +0200 Subject: ax25ipd: Remove USE_SGTTY ifdefery. Signed-off-by: Ralf Baechle --- ax25ipd/io.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ax25ipd/io.c b/ax25ipd/io.c index 1eae3e6..0f8077e 100644 --- a/ax25ipd/io.c +++ b/ax25ipd/io.c @@ -37,10 +37,6 @@ #include static struct termio nterm; -#ifdef USE_SGTTY -#include -static struct sgttyb nterm; -#endif int ttyfd = -1; static int udpsock = -1; @@ -371,9 +367,6 @@ void io_open(void) goto behind_normal_tty; } if (ioctl(ttyfd, TCGETA, &nterm) < 0) { -#ifdef USE_SGTTY - if (ioctl(ttyfd, TIOCGETP, &nterm) < 0) { -#endif perror("fetching tty device parameters"); exit(1); } @@ -503,23 +496,14 @@ void io_open(void) else baudrate = B9600; -#ifdef USE_SGTTY - nterm.sg_flags = (RAW | ANYP); - nterm.sg_ispeed = baudrate; - nterm.sg_ospeed = baudrate; -#else nterm.c_iflag = 0; nterm.c_oflag = 0; nterm.c_cflag = baudrate | CS8 | CREAD | CLOCAL; nterm.c_lflag = 0; nterm.c_cc[VMIN] = 0; nterm.c_cc[VTIME] = 0; -#endif /* USE_SGTTY */ if (ioctl(ttyfd, TCSETA, &nterm) < 0) { -#ifdef USE_SGTTY - if (ioctl (ttyfd, TIOCSETP, &nterm) < 0) { -#endif /* USE_SGTTY */ perror("setting tty device parameters"); exit(1); } -- cgit v1.2.3