Changeset ff4a4a8 in rtems


Ignore:
Timestamp:
Sep 25, 2019, 8:48:50 PM (4 weeks ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
667501a
Parents:
7685b48
git-author:
Joel Sherrill <joel@…> (09/25/19 20:48:50)
git-committer:
Joel Sherrill <joel@…> (10/04/19 14:13:28)
Message:

termios04/init.c: Remove dead copy of change_iflag()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/termios04/init.c

    r7685b48 rff4a4a8  
    3030void open_it(void);
    3131void close_it(void);
    32 void change_iflag(const char *desc, int mask, int new);
    3332rtems_task Init(rtems_task_argument argument);
    3433
     
    9493}
    9594
    96 void change_iflag( const char *desc, int mask, int new )
    97 {
    98   int            rc;
    99   struct termios attr;
    100 
    101   printf( "Changing c_iflag to: %s\n", desc );
    102   rc = tcgetattr( Test_fd, &attr );
    103   rtems_test_assert( rc == 0 );
    104 
    105   attr.c_iflag &= ~mask;
    106   attr.c_iflag |= new;
    107 
    108   rc = tcsetattr( Test_fd, TCSANOW, &attr );
    109   rtems_test_assert( rc == 0 );
    110 }
    111 
    11295const char ExpectedOutput_1[] = "This is interrupt driven test output.\n";
    11396const char ExpectedInput_1[] = "Blocking interrupt driven read.\n";
Note: See TracChangeset for help on using the changeset viewer.