Changeset e734e576 in rtems


Ignore:
Timestamp:
Jul 3, 2000, 8:48:00 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
1d51c45
Parents:
0f4bfda9
Message:

Patch rtems-rc-20000702-1.diff from Ralf Corsepius <corsepiu@…>
that is a hack to workaround a switch generation compiler bug for the
SH2 and cleaned up some warnings.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: c/src/tests/libtests/termios/init.c
CVS: ----------------------------------------------------------------------

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/libtests/termios/init.c

    r0f4bfda9 re734e576  
    236236void print_c_cflag( struct termios * tp )
    237237{
    238   int baud;
     238  unsigned int baud;
    239239 
    240240  printf( "c_cflag = 0x%08x\n", tp->c_cflag );
    241  
    242   switch( baud = (tp->c_cflag & CBAUD) ) {
     241
     242  baud = (tp->c_cflag & CBAUD) ;
     243#if defined(__sh2__)
     244  if ( tp->c_cflag & CBAUDEX )
     245#endif
     246  switch( baud ) {
    243247    case B0:
    244248      printf( "\tCBAUD =\tB0\n" );
     
    304308      printf( "\tCBAUD =\tB38400\n" );
    305309      break;
    306      
     310#if defined(__sh2__)
     311    }
     312    else
     313    switch ( baud )
     314    {
     315#endif
    307316    case B57600:
    308317      printf( "\tCBAUD =\tB57600\n" );
Note: See TracChangeset for help on using the changeset viewer.