[PATCH 1/2] termios04/init.c: Remove dead copy of change_iflag()

Joel Sherrill joel at rtems.org
Wed Oct 2 21:56:04 UTC 2019


---
 testsuites/libtests/termios04/init.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/testsuites/libtests/termios04/init.c b/testsuites/libtests/termios04/init.c
index 8d76dfe..9540db1 100644
--- a/testsuites/libtests/termios04/init.c
+++ b/testsuites/libtests/termios04/init.c
@@ -29,7 +29,6 @@ void write_helper(int fd, const char *c);
 void read_helper(int fd, const char *expected);
 void open_it(void);
 void close_it(void);
-void change_iflag(const char *desc, int mask, int new);
 rtems_task Init(rtems_task_argument argument);
 
 void write_helper(
@@ -93,22 +92,6 @@ void close_it(void)
   rtems_test_assert( rc == 0 );
 }
 
-void change_iflag( const char *desc, int mask, int new )
-{
-  int            rc;
-  struct termios attr;
-
-  printf( "Changing c_iflag to: %s\n", desc );
-  rc = tcgetattr( Test_fd, &attr );
-  rtems_test_assert( rc == 0 );
-
-  attr.c_iflag &= ~mask;
-  attr.c_iflag |= new;
-
-  rc = tcsetattr( Test_fd, TCSANOW, &attr );
-  rtems_test_assert( rc == 0 );
-}
-
 const char ExpectedOutput_1[] = "This is interrupt driven test output.\n";
 const char ExpectedInput_1[] = "Blocking interrupt driven read.\n";
 const char ExpectedInput_2[] = "Non-Blocking interrupt driven read.\n";
-- 
1.8.3.1



More information about the devel mailing list